diff --git a/src/modules/wallet/views/WalletPage.vue b/src/modules/wallet/views/WalletPage.vue index c638700..d83559a 100644 --- a/src/modules/wallet/views/WalletPage.vue +++ b/src/modules/wallet/views/WalletPage.vue @@ -62,26 +62,20 @@ async function refresh() { await authService?.refresh() } -function getTransactionIcon(type: string) { +function getTransactionIcon(type: string, status: string) { + if (status === 'pending') { + return Clock + } return type === 'received' ? ArrowDownLeft : ArrowUpRight } -function getTransactionColor(type: string) { - return type === 'received' ? 'text-green-600' : 'text-orange-600' +function getTransactionColor(type: string, status: string) { + if (status === 'pending') { + return 'text-amber-500' + } + return type === 'received' ? 'text-green-600' : 'text-red-600' } -function getStatusColor(status: string) { - switch (status) { - case 'confirmed': - return 'default' - case 'pending': - return 'secondary' - case 'failed': - return 'destructive' - default: - return 'outline' - } -} // Initialize on mount onMounted(() => { @@ -191,10 +185,10 @@ onMounted(() => {
{{ tx.type === 'received' ? '+' : '-' }}{{ tx.amount.toLocaleString() }}
@@ -237,9 +231,6 @@ onMounted(() => {{{ tx.type === 'received' ? '+' : '-' }} {{ tx.amount.toLocaleString() }} sats