diff options
| author | Adam Soltys <[email protected]> | 2022-11-03 02:01:55 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-03 02:01:55 -0700 |
| commit | 9579527ccc4242f08b46c60efb1c47914c7140e2 (patch) | |
| tree | a616bef63cb61f9e623e052401b0452f7309d7ba /src/routes/(app) | |
| parent | b4265b73591055adaeca489ceb03adcb27d71a5c (diff) | |
| download | coinos-ui-9579527ccc4242f08b46c60efb1c47914c7140e2.tar.gz coinos-ui-9579527ccc4242f08b46c60efb1c47914c7140e2.zip | |
tx labels
Diffstat (limited to 'src/routes/(app)')
| -rw-r--r-- | src/routes/(app)/[username]/transactions/[...page]/+page.svelte | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/transactions/[...page]/+page.svelte b/src/routes/(app)/[username]/transactions/[...page]/+page.svelte index efecbaf2..91429917 100644 --- a/src/routes/(app)/[username]/transactions/[...page]/+page.svelte +++ b/src/routes/(app)/[username]/transactions/[...page]/+page.svelte @@ -121,12 +121,19 @@ {#if tx.with} <a href={`/${tx.with.username}`} class="mx-auto"> <div class="flex"> + <div class="my-auto text-secondary"> + {tx.amount > 0 ? 'From' : 'To'} + </div> <div class="my-auto"> <Avatar user={tx.with} size={12} /> </div> - <div class="my-auto ml-1">{tx.with.username}</div> + <div class="my-auto ml-1 text-secondary">{tx.with.username}</div> </div> </a> + {:else} + <div class="mx-auto text-secondary"> + {tx.amount > 0 ? 'Received' : 'Sent'} + </div> {/if} </div> |
