From 617787b582eed86b91ef5eea5fe223771d7d3811 Mon Sep 17 00:00:00 2001 From: mohandast52 Date: Fri, 13 Dec 2024 21:44:01 +0530 Subject: [PATCH] refactor: simplify SetupEoaFundingWaiting component by removing currency prop --- .../components/SetupPage/Create/SetupEoaFunding.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/frontend/components/SetupPage/Create/SetupEoaFunding.tsx b/frontend/components/SetupPage/Create/SetupEoaFunding.tsx index dbe6ff0c..79f5e478 100644 --- a/frontend/components/SetupPage/Create/SetupEoaFunding.tsx +++ b/frontend/components/SetupPage/Create/SetupEoaFunding.tsx @@ -46,11 +46,8 @@ const statusMessage = (isFunded?: boolean) => { } }; -type SetupEoaFundingWaitingProps = { chainName: string; currency: string }; -const SetupEoaFundingWaiting = ({ - chainName, - currency, -}: SetupEoaFundingWaitingProps) => { +type SetupEoaFundingWaitingProps = { chainName: string }; +const SetupEoaFundingWaiting = ({ chainName }: SetupEoaFundingWaitingProps) => { const { masterEoa } = useMasterWalletContext(); const masterEoaAddress = masterEoa?.address; @@ -90,7 +87,7 @@ const SetupEoaFundingWaiting = ({ - {`${currency}: ${masterEoaAddress || NA}`} + {`${masterEoaAddress || NA}`} {/* - {!isFunded && ( - - )} + {!isFunded && } ); };