Skip to content

Commit f9a14a2

Browse files
committed
Added logout icon
1 parent 4cdd709 commit f9a14a2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

frontend/src/components/functional/LoginLogout.vue

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { ref, watchEffect } from "vue";
33
import { useRouter } from "vue-router";
44
import { logout } from "../../auth.js";
5+
import IconLogout from "../icons/IconLogout.vue";
56
67
const router = useRouter();
78
const errorMessage = ref("");
@@ -27,11 +28,13 @@ async function handleLogout() {
2728
<template>
2829
<div v-if="isAuthenticated">
2930
<router-link to="#" @click.prevent="handleLogout" class="text-gray-400 dark:text-white-400 inline-block py-2 px-4 text-sm font-medium">
31+
<IconLogout class="inline-block" />
3032
Logout
3133
</router-link>
3234
</div>
3335
<div v-else>
3436
<router-link :to="{ name: 'login' }" class="text-gray-400 dark:text-white-400 inline-block py-2 px-4 text-sm font-medium">
37+
<IconLogin class="inline-block" />
3538
Login
3639
</router-link>
3740
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<svg class="w-6 h-6"
3+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M217 28.098v455.804l142-42.597V70.697zm159.938 26.88l.062 2.327V87h16V55zM119 55v117.27h18V73h62V55zm258 50v16h16v-16zm0 34v236h16V139zm-240 58.727V233H41v46h96v35.273L195.273 256zM244 232c6.627 0 12 10.745 12 24s-5.373 24-12 24-12-10.745-12-24 5.373-24 12-24zM137 339.73h-18V448h18zM377 393v14h16v-14zm0 32v23h16v-23zM32 471v18h167v-18zm290.652 0l-60 18H480v-18z"/></svg>
4+
</template>

0 commit comments

Comments
 (0)