Skip to content

Commit

Permalink
opti
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu NICOLAS authored and Mathieu NICOLAS committed Sep 25, 2024
1 parent 9dcc9f8 commit 50de95a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
20 changes: 11 additions & 9 deletions app/components/userDropdown.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<template>
<div v-if="store.session.loggedIn" class="flex flex-row justify-between w-full">
<UBadge variant="soft" size="lg">
<Icon name="ph:student-fill" />
{{ store.session.user?.firstName }}
</UBadge>
<AuthState>
<div v-if="store.session.loggedIn" class="flex flex-row justify-between w-full">
<UBadge variant="soft" size="lg">
<Icon name="ph:student-fill" />
{{ store.session.user?.firstName }}
</UBadge>

<UButton variant="ghost" @click="logout">
Déconnexion
</UButton>
</div>
<UButton variant="ghost" @click="logout">
Déconnexion
</UButton>
</div>
</AuthState>
</template>

<script lang="ts" setup>
Expand Down
3 changes: 2 additions & 1 deletion app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
</template>

<script lang="ts" setup>
const semaine = 3
const semaine = 4
const periodes = [7, 2, 7, 2, 5, 2, 6, 2, 6, 2, 5]
const periodesAccumulated = periodes.reduce((acc, el) => {
Expand Down

0 comments on commit 50de95a

Please sign in to comment.