Skip to content

Commit

Permalink
feat: send action item to teleport in team view
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Mar 31, 2024
1 parent 16813f9 commit b3c4971
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/app/pages/app/teams.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { type Team, TeamRole } from '@shelve/types'
import { isMounted } from '~/composables/useDOM'
const user = useCurrentUser()
Expand Down Expand Up @@ -77,7 +78,13 @@ const items = (row: Team) => [
</p>
</div>
</div>
<div style="--stagger: 2" data-animate class="mt-2 flex flex-col justify-end gap-2 sm:flex-row sm:items-center">
<Teleport v-if="isMounted('action-items')" to="#action-items">
<div class="hidden items-center justify-end gap-2 sm:flex">
<TeamCreate>Create</TeamCreate>
<UInput v-model="search" label="Search" placeholder="Search a team" icon="i-heroicons-magnifying-glass-20-solid" />
</div>
</Teleport>
<div style="--stagger: 2" data-animate class="mt-2 flex flex-col justify-end gap-2 sm:hidden sm:flex-row sm:items-center">
<TeamCreate>Create</TeamCreate>
<UInput v-model="search" label="Search" placeholder="Search a team" icon="i-heroicons-magnifying-glass-20-solid" />
</div>
Expand Down

0 comments on commit b3c4971

Please sign in to comment.