From 8558b52b5508aea0bd648a6301951a0ffe68f7ef Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 17 May 2026 11:43:31 +0800 Subject: [PATCH] add lucide arrow icons for sent/received transactions --- apps/desktop/src/routes/index.svelte | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/routes/index.svelte b/apps/desktop/src/routes/index.svelte index bc870c6..4c47f01 100644 --- a/apps/desktop/src/routes/index.svelte +++ b/apps/desktop/src/routes/index.svelte @@ -12,6 +12,8 @@ CardHeader, CardTitle, } from '$lib/components/ui/card/index.js' + import ArrowDown from '@lucide/svelte/icons/arrow-down' + import ArrowUp from '@lucide/svelte/icons/arrow-up' const CDN = 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains' @@ -262,7 +264,14 @@ {:else}
{#each w.moneroTxs as tx} -
+
+
+ {#if tx.direction === 'in'} + + {:else} + + {/if} +

{tx.direction === 'in' ? 'Received' : 'Sent'} @@ -426,7 +435,14 @@ hash: tx.hash, }, })} - class="flex w-full cursor-pointer items-center justify-between rounded-md bg-muted px-3 py-2 text-xs text-left hover:bg-muted/80 transition-colors"> + class="flex w-full cursor-pointer items-start gap-2 rounded-md bg-muted px-3 py-2 text-xs text-left hover:bg-muted/80 transition-colors"> +

+ {#if tx.from.toLowerCase() === w.address.toLowerCase()} + + {:else} + + {/if} +

{txAction(tx, w.address)}