mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-07 05:57:41 +00:00
Login icon added
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
7ae17b11e9
commit
0b1bc9cf76
3 changed files with 13 additions and 1 deletions
|
@ -8,12 +8,15 @@
|
|||
<div v-if="isAuthenticated" @click="() => setToken('')">
|
||||
<IconLogout class="h-6 w-6 cursor-pointer"></IconLogout>
|
||||
</div>
|
||||
<router-link to="/login" v-else>
|
||||
<IconLogin class="h-6 w-6 cursor-pointer"></IconLogin>
|
||||
</router-link>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useDark, useToggle } from '@vueuse/core'
|
||||
import { IconLightDark, IconLogout } from '@/components/icons'
|
||||
import { IconLightDark, IconLogout, IconLogin } from '@/components/icons'
|
||||
import { useAuth } from '@/composables/'
|
||||
|
||||
const { isAuthenticated, setToken } = useAuth()
|
||||
|
|
8
src/components/icons/IconLogin.vue
Normal file
8
src/components/icons/IconLogin.vue
Normal file
|
@ -0,0 +1,8 @@
|
|||
<template>
|
||||
<svg viewBox="0 0 24 24">
|
||||
<path
|
||||
d="M10 17v-3H3v-4h7V7l5 5l-5 5m0-15h9a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-2h2v2h9V4h-9v2H8V4a2 2 0 0 1 2-2z"
|
||||
fill="currentColor"
|
||||
></path>
|
||||
</svg>
|
||||
</template>
|
|
@ -6,4 +6,5 @@ export { default as IconSpinner } from './IconSpinner.vue'
|
|||
export { default as IconNoGift } from './IconNoGift.vue'
|
||||
export { default as IconLightDark } from './IconLightDark.vue'
|
||||
export { default as IconLogout } from './IconLogout.vue'
|
||||
export { default as IconLogin } from './IconLogin.vue'
|
||||
export { default as IconCloudQuestion } from './IconCloudQuestion.vue'
|
||||
|
|
Loading…
Add table
Reference in a new issue