Skip to content

Commit

Permalink
refactor: simplify SetupEoaFundingWaiting component by removing curre…
Browse files Browse the repository at this point in the history
…ncy prop
  • Loading branch information
mohandast52 committed Dec 13, 2024
1 parent 922a1f6 commit 617787b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions frontend/components/SetupPage/Create/SetupEoaFunding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -90,7 +87,7 @@ const SetupEoaFundingWaiting = ({
</Flex>

<span className="can-select-text break-word">
{`${currency}: ${masterEoaAddress || NA}`}
{`${masterEoaAddress || NA}`}
</span>
{/* <CustomAlert
type="info"
Expand Down Expand Up @@ -131,9 +128,7 @@ export const SetupEoaFundingForChain = ({
Status: {statusMessage(isFunded)}
</Text>
</CardSection>
{!isFunded && (
<SetupEoaFundingWaiting chainName={chainName} currency={currency} />
)}
{!isFunded && <SetupEoaFundingWaiting chainName={chainName} />}
</CardFlex>
);
};
Expand Down

0 comments on commit 617787b

Please sign in to comment.