feat: move logout icon to component

This commit is contained in:
EETagent 2023-01-12 13:31:18 +01:00
parent 8e40aa46af
commit ba7f38bee1
2 changed files with 15 additions and 13 deletions

View file

@ -6,6 +6,7 @@
import Document from '../icons/Document.svelte';
import Download from '../icons/Download.svelte';
import { sticky } from 'tippy.js';
import Logout from '../icons/Logout.svelte';
export let showDetails: boolean;
@ -50,19 +51,7 @@
delay: 0
}}
>
<svg
class="icon"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
><path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
/></svg
>
<Logout />
</span>
{:else}
<span

View file

@ -0,0 +1,13 @@
<svg
class="h-10 w-10"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
><path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
/></svg
>

After

Width:  |  Height:  |  Size: 302 B