aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-11 11:56:04 -0800
committerAdam Soltys <[email protected]>2022-11-11 11:56:04 -0800
commit3a6e9517c98b91fcb4f6f0cfcb03be069591eaf7 (patch)
tree50dc8eca3092cac1d1580887a6457d4149ca909f /src/components
parentc0393af338bb0c51180df2a736b57287b3993853 (diff)
downloadcoinos-ui-3a6e9517c98b91fcb4f6f0cfcb03be069591eaf7.tar.gz
coinos-ui-3a6e9517c98b91fcb4f6f0cfcb03be069591eaf7.zip
contacts on send page
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppHeader.svelte18
-rw-r--r--src/components/Avatar.svelte3
2 files changed, 11 insertions, 10 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index 54f0b223..4094e50c 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -57,15 +57,6 @@
><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
@@ -85,6 +76,15 @@
{/if}
</button>
</a>
+ <a href={`/send`}>
+ <button
+ class="bg-white p-2 rounded-full w-12 h-12 drop-shadow-xl border border-black/10 {$page
+ .url.pathname === `/send`
+ ? 'opacity-100'
+ : 'opacity-70 hover:opacity-80'}"
+ ><Icon icon="send" style="mx-auto w-6" />
+ </button>
+ </a>
<div class="relative">
<OutClick on:outclick={() => (showMenu = false)}>
<button
diff --git a/src/components/Avatar.svelte b/src/components/Avatar.svelte
index 092af740..d2d83977 100644
--- a/src/components/Avatar.svelte
+++ b/src/components/Avatar.svelte
@@ -4,10 +4,11 @@
export let user;
export let size = 32;
+ export let disabled = false;
$: s = size.toString();
</script>
-<a href={`/${user.username}`}>
+<a href={`/${user.username}`} class:pointer-events-none={disabled}>
<div
class="w-{s} h-{s} rounded-full border-4 border-white overflow-hidden bg-gradient-to-r {$colorTheme} flex justify-center items-center"
>