diff options
| author | Adam Soltys <[email protected]> | 2022-11-09 23:57:21 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-09 23:57:21 -0800 |
| commit | 13ded49a1934f9afa171de440c82629c5818eac3 (patch) | |
| tree | 4caeb1dfbb950068b2d761199243e90ab4d4655c /src/components | |
| parent | c01e1c12c3e1c231bd818c824ee9f246f707e304 (diff) | |
| download | coinos-ui-13ded49a1934f9afa171de440c82629c5818eac3.tar.gz coinos-ui-13ded49a1934f9afa171de440c82629c5818eac3.zip | |
camera button in menu
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/AppHeader.svelte | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 81660ea4..1784f13b 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -17,6 +17,7 @@ menuButtons = [ { key: 'nav.profile', icon: 'profile', href: `/${user.username}` }, { key: 'nav.settings', icon: 'settings', href: `/${user.username}/settings` }, + { key: 'nav.scan', icon: 'camera', href: `/${user.username}/scan` }, { key: 'nav.support', icon: 'support', href: `/support` }, { key: 'nav.signOut', icon: 'logout', href: `/logout` } ]; @@ -57,6 +58,15 @@ ><Icon icon="numpad" style="mx-auto" /> </button> </a> + <a href={`/scan`}> + <button + class="bg-white p-2 rounded-full w-12 h-12 drop-shadow-xl border border-black/10 {$page + .url.pathname === `/scan` + ? 'opacity-100' + : 'opacity-70 hover:opacity-80'}" + ><Icon icon="camera" style="mx-auto w-6" /> + </button> + </a> <a href={`/${user.username}/transactions`}> <button class="bg-white p-2 rounded-full w-12 h-12 drop-shadow-xl border border-black/10 {$page |
