fix: 🐛 Fix hydration errors on sidebar

This commit is contained in:
Jesse Wierzbinski 2024-04-27 21:11:37 -10:00
parent ef1e0de9a8
commit 7004deafcd
No known key found for this signature in database

View file

@ -20,7 +20,9 @@
<div class="flex flex-col gap-3 mt-auto"> <div class="flex flex-col gap-3 mt-auto">
<h3 class="font-semibold text-gray-300 text-xs uppercase opacity-0 group-hover:opacity-100 duration-200"> <h3 class="font-semibold text-gray-300 text-xs uppercase opacity-0 group-hover:opacity-100 duration-200">
Account</h3> Account</h3>
<ButtonsBase v-if="tokenData" @click="signOut().finally(() => loadingAuth = false)" :loading="loadingAuth" <ClientOnly>
<ButtonsBase v-if="tokenData" @click="signOut().finally(() => loadingAuth = false)"
:loading="loadingAuth"
class="flex flex-row text-left items-center justify-start gap-3 text-lg hover:ring-1 ring-white/10 overflow-hidden h-12 w-full duration-200"> class="flex flex-row text-left items-center justify-start gap-3 text-lg hover:ring-1 ring-white/10 overflow-hidden h-12 w-full duration-200">
<Icon name="tabler:logout" class="shrink-0 text-2xl" /> <Icon name="tabler:logout" class="shrink-0 text-2xl" />
<span class="pr-28 line-clamp-1">Sign Out</span> <span class="pr-28 line-clamp-1">Sign Out</span>
@ -45,6 +47,7 @@
<Icon name="tabler:writing" class="shrink-0 text-2xl" /> <Icon name="tabler:writing" class="shrink-0 text-2xl" />
<span class="pr-28 line-clamp-1">Compose</span> <span class="pr-28 line-clamp-1">Compose</span>
</ButtonsBase> </ButtonsBase>
</ClientOnly>
</div> </div>
</aside> </aside>
</template> </template>