generated from pascalmartineau/wp-skeleton
refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ showLabels: boolean }>();
|
||||
const props = defineProps<{ showLabels: boolean }>();
|
||||
const { loggedIn } = useUserSession();
|
||||
const label = computed(() => props.showLabels ? (loggedIn ? "Déconnexion" : "Connexion") : undefined);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -9,7 +10,7 @@ const { loggedIn } = useUserSession();
|
||||
:icon="loggedIn ? 'i-lucide-log-out' : 'i-lucide-log-in'"
|
||||
color="neutral"
|
||||
to="/connexion"
|
||||
:label="showLabels ? (loggedIn ? 'Déconnexion' : 'Connexion') : undefined"
|
||||
:label="label"
|
||||
/>
|
||||
</AuthState>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user