From 1a065deac6751c50bd11c4500cd088924d5c977b Mon Sep 17 00:00:00 2001 From: Andre Neyra Date: Fri, 5 Jan 2024 10:41:02 -0500 Subject: [PATCH] fix problem with build, add missing getDisplayTransferInfo method --- src/components/TxTable/TxDetailItem.tsx | 4 ++-- src/hooks/transactions/getDisplayInfo.ts | 25 ++++++++++++++++++++++-- src/pages/app/transactions.tsx | 1 - 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/components/TxTable/TxDetailItem.tsx b/src/components/TxTable/TxDetailItem.tsx index ff9366c0..7cf12cbd 100644 --- a/src/components/TxTable/TxDetailItem.tsx +++ b/src/components/TxTable/TxDetailItem.tsx @@ -115,9 +115,9 @@ export const TxDetailItem = ({ if (!txData.type) { return ( => { + const displayInfo: TransactionDisplayInfo = { + img: TX_TYPE_IMG.RECEIVE, + type: "Receive", + txMsg: "from", + valueAmount: "", + to: txProposed.to, + from: txProposed.from, + }; + + displayInfo.valueAmount = `${balanceToFixed( + txProposed.value, + nativeToken.decimals + )} ${nativeToken.token}`; + + return displayInfo; +}; diff --git a/src/pages/app/transactions.tsx b/src/pages/app/transactions.tsx index 786cc604..74903822 100644 --- a/src/pages/app/transactions.tsx +++ b/src/pages/app/transactions.tsx @@ -6,7 +6,6 @@ import { useGetXsignerSelected } from "@/hooks/xsignerSelected/useGetXsignerSele export default function TxPage() { const { xSignerSelected } = useGetXsignerSelected(); - if (!xSignerSelected) { return ; }