refactor: update composable names
This commit is contained in:
parent
787a55bea7
commit
4fc6e405e0
9 changed files with 46 additions and 34 deletions
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
const { currentUser } = $(useAppStore())
|
||||
const { currentUser } = $(useClientState())
|
||||
|
||||
const account = $computed(() => currentUser?.account)
|
||||
</script>
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
<script setup lang="ts">
|
||||
|
||||
const isLogin = useLoginState()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div px6 py2 flex="~ col gap6" text-lg>
|
||||
<NuxtLink flex gap2 items-center to="/home" active-class="text-primary">
|
||||
<div i-ri:home-5-line />
|
||||
<span>Home</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/notifications" active-class="text-primary">
|
||||
<div i-ri:notification-4-line />
|
||||
<span>Notifications</span>
|
||||
</NuxtLink>
|
||||
<template v-if="isLogin">
|
||||
<NuxtLink flex gap2 items-center to="/home" active-class="text-primary">
|
||||
<div i-ri:home-5-line />
|
||||
<span>Home</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/notifications" active-class="text-primary">
|
||||
<div i-ri:notification-4-line />
|
||||
<span>Notifications</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
<NuxtLink flex gap2 items-center to="/explore" active-class="text-primary">
|
||||
<div i-ri:hashtag />
|
||||
<span>Explore</span>
|
||||
|
@ -24,17 +26,19 @@
|
|||
<div i-ri:earth-line />
|
||||
<span>Federated</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center active-class="text-primary">
|
||||
<div i-ri:at-line />
|
||||
<span>Messages</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/favourites" active-class="text-primary">
|
||||
<div i-ri:heart-3-line />
|
||||
<span>Favorites</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/bookmarks" active-class="text-primary">
|
||||
<div i-ri:bookmark-line />
|
||||
<span>Bookmarks</span>
|
||||
</NuxtLink>
|
||||
<template v-if="isLogin">
|
||||
<NuxtLink flex gap2 items-center active-class="text-primary">
|
||||
<div i-ri:at-line />
|
||||
<span>Messages</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/favourites" active-class="text-primary">
|
||||
<div i-ri:heart-3-line />
|
||||
<span>Favorites</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink flex gap2 items-center to="/bookmarks" active-class="text-primary">
|
||||
<div i-ri:bookmark-line />
|
||||
<span>Bookmarks</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue