From ca6e101aa9ee03ee1f55a85d90883f0d1b90dea2 Mon Sep 17 00:00:00 2001 From: richardo2016x Date: Thu, 1 Aug 2024 17:23:24 +0800 Subject: [PATCH 1/2] chore: literals --- src/ui/views/ApprovalManagePage/components/RevokeButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/views/ApprovalManagePage/components/RevokeButton.tsx b/src/ui/views/ApprovalManagePage/components/RevokeButton.tsx index 8a2a9175782..72a0f68801e 100644 --- a/src/ui/views/ApprovalManagePage/components/RevokeButton.tsx +++ b/src/ui/views/ApprovalManagePage/components/RevokeButton.tsx @@ -95,7 +95,7 @@ export const RevokeButton: React.FC = ({ revokeSummary, onRevoke }) => { <> {revokeTxCount > 1 ? (
- {revokeTxCount} transaction(s) to be signed sequentially + {revokeTxCount} transactions to be signed sequentially
) : (
From 3c4c40ae087bc96c749529e2f7c52b5b8f764136 Mon Sep 17 00:00:00 2001 From: richardo2016x Date: Thu, 1 Aug 2024 17:24:11 +0800 Subject: [PATCH 2/2] feat: improve ux of ReserveGas on Send. --- src/ui/views/SendToken/index.tsx | 1 + src/ui/views/Swap/Component/ReserveGasPopup.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ui/views/SendToken/index.tsx b/src/ui/views/SendToken/index.tsx index aaf35e1f5d0..e47dd73b2f9 100644 --- a/src/ui/views/SendToken/index.tsx +++ b/src/ui/views/SendToken/index.tsx @@ -1620,6 +1620,7 @@ const SendToken = () => { }} gasList={gasList} visible={reserveGasOpen} + rawHexBalance={currentToken.raw_amount_hex_str} onClose={(gasLevel) => handleGasLevelChanged(gasLevel)} /> diff --git a/src/ui/views/Swap/Component/ReserveGasPopup.tsx b/src/ui/views/Swap/Component/ReserveGasPopup.tsx index 96ab9cc71be..7d6d82a2e6e 100644 --- a/src/ui/views/Swap/Component/ReserveGasPopup.tsx +++ b/src/ui/views/Swap/Component/ReserveGasPopup.tsx @@ -266,6 +266,7 @@ export const SendReserveGasPopup = ( onGasChange, limit, selectedItem, + rawHexBalance, onClose, onCancel, ...otherPopupProps @@ -297,6 +298,7 @@ export const SendReserveGasPopup = ( limit={limit} selectedItem={selectedItem} onGasChange={onGasChange} + rawHexBalance={rawHexBalance} /> )}