diff --git a/ui/app/transactions/page.tsx b/ui/app/transactions/page.tsx index 256cf7d6..e07eef52 100644 --- a/ui/app/transactions/page.tsx +++ b/ui/app/transactions/page.tsx @@ -34,7 +34,7 @@ import { Check, } from 'lucide-react'; import { AdminService, type Transaction } from '@/lib/api/services/admin'; -import { formatDistanceToNow } from 'date-fns'; +import { format } from 'date-fns'; import { toast } from 'sonner'; export default function TransactionsPage() { @@ -141,6 +141,7 @@ export default function TransactionsPage() { All Statuses Pending Collected + Swept @@ -164,7 +165,7 @@ export default function TransactionsPage() { Type Amount Status - ID / Request ID + Request ID Mint Date Actions @@ -188,51 +189,32 @@ export default function TransactionsPage() { {getStatusBadge(tx)} -
-
- - {tx.id} + {tx.request_id ? ( +
+ + {tx.request_id}
- {tx.request_id && ( -
- - {tx.request_id} - - -
- )} -
+ ) : ( + — + )}
@@ -240,9 +222,7 @@ export default function TransactionsPage() {
- {formatDistanceToNow(tx.created_at * 1000, { - addSuffix: true, - })} + {format(tx.created_at * 1000, 'yyyy-MM-dd HH:mm:ss')}