From 47eb31fcdefb041c2b84f3ed01d8c4249ca927b2 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 26 Apr 2023 18:48:47 -0500 Subject: [PATCH] fix labels and activity times --- src/components/Activity.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/Activity.tsx b/src/components/Activity.tsx index 2b3079e..26a64b0 100644 --- a/src/components/Activity.tsx +++ b/src/components/Activity.tsx @@ -10,8 +10,8 @@ import mempoolTxUrl from '~/utils/mempoolTxUrl'; const THREE_COLUMNS = 'grid grid-cols-[auto,1fr,auto] gap-4 py-2 px-2 border-b border-neutral-800 last:border-b-0' const CENTER_COLUMN = 'min-w-0 overflow-hidden max-w-full' -const MISSING_LABEL = 'py-1 px-2 bg-m-red rounded inline-block text-sm' -const RIGHT_COLUMN = 'flex flex-col items-right text-right' +const MISSING_LABEL = 'py-1 px-2 bg-white/10 rounded inline-block text-sm' +const RIGHT_COLUMN = 'flex flex-col items-right text-right max-w-[8rem]' type OnChainTx = { txid: string @@ -19,8 +19,10 @@ type OnChainTx = { sent: number fee?: number confirmation_time?: { - height: number - timestamp: number + "Confirmed": { + height: number + time: number + } } } @@ -53,7 +55,7 @@ function OnChainItem(props: { item: OnChainTx }) {
setOpen(!open())}> {isReceive() ? receive arrow : send arrow}
-

Label Missing

+

Unknown

{isReceive() ? : } {/*

Txid: {props.item.txid}

*/}
@@ -61,7 +63,7 @@ function OnChainItem(props: { item: OnChainTx }) { {isReceive() ? "RECEIVE" : "SEND"} - {props.item.confirmation_time ? prettyPrintTime(props.item.confirmation_time.timestamp) : "Unconfirmed"} + {props.item.confirmation_time ? prettyPrintTime(props.item.confirmation_time.Confirmed.time) : "Unconfirmed"}
@@ -79,7 +81,7 @@ function InvoiceItem(props: { item: MutinyInvoice }) {
setOpen(!open())}> {isSend() ? send arrow : receive arrow}
-

Label Missing

+

Unknown

@@ -104,7 +106,7 @@ function Utxo(props: { item: Utxo }) {
setOpen(!open())}> receive arrow
-

Label Missing

+

Unknown