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 | 8b866b1a997f72aa9ab629f9af9390dfad9f1424 (patch) | |
| tree | a616bef63cb61f9e623e052401b0452f7309d7ba /src/routes/(app) | |
| parent | 067c8d8762e2d039b4cc19cd2fee24e4d07e661a (diff) | |
| download | coinos-ui-8b866b1a997f72aa9ab629f9af9390dfad9f1424.tar.gz coinos-ui-8b866b1a997f72aa9ab629f9af9390dfad9f1424.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> |
