Add fallback template to ClientOnly to prevent hydration mismatch
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<img src="/logos/logo.png" alt="New Life Christian Church" class="h-16 w-auto" />
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<ClientOnly>
|
||||
<ClientOnly fallback-tag="div">
|
||||
<template v-if="isAuthenticated">
|
||||
<NuxtLink
|
||||
to="/admin"
|
||||
@@ -30,6 +30,9 @@
|
||||
>
|
||||
Admin Login
|
||||
</NuxtLink>
|
||||
<template #fallback>
|
||||
<div class="h-10"></div>
|
||||
</template>
|
||||
</ClientOnly>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user