refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s

This commit is contained in:
2025-09-17 08:41:42 -04:00
parent ba42386645
commit 346890c088
19 changed files with 90 additions and 124 deletions

View File

@@ -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>