From 668fdebe89adc5b6b62b89956c28f78cffe12da4 Mon Sep 17 00:00:00 2001 From: starknetdev Date: Thu, 21 Sep 2023 11:29:46 +0100 Subject: [PATCH] add top ups --- ui/src/app/components/ArcadeDialog.tsx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ui/src/app/components/ArcadeDialog.tsx b/ui/src/app/components/ArcadeDialog.tsx index 0f014f22d..08739f148 100644 --- a/ui/src/app/components/ArcadeDialog.tsx +++ b/ui/src/app/components/ArcadeDialog.tsx @@ -31,6 +31,8 @@ export const ArcadeDialog = () => { ); }, [available]); + console.log(arcadeConnectors()); + if (!connectors) return
; return ( @@ -69,6 +71,7 @@ export const ArcadeDialog = () => { onClick={connect} address={address!} masterAccount={MasterAccount!} + arcadeConnectors={arcadeConnectors()} /> ); })} @@ -91,6 +94,7 @@ interface ArcadeAccountCardProps { onClick: (conn: Connector) => void; address: string; masterAccount: AccountInterface; + arcadeConnectors: any[]; } export const ArcadeAccountCard = ({ @@ -98,6 +102,7 @@ export const ArcadeAccountCard = ({ onClick, address, masterAccount, + arcadeConnectors, }: ArcadeAccountCardProps) => { const { data } = useBalance({ address: account.name, @@ -142,6 +147,12 @@ export const ArcadeAccountCard = ({ } }; + console.log( + arcadeConnectors.some( + (conn) => conn.options.options.id == masterAccount.address + ) + ); + return (
@@ -153,13 +164,23 @@ export const ArcadeAccountCard = ({ {balance}ETH{" "}
-
+
+ {!arcadeConnectors.some( + (conn) => conn.options.options.id == masterAccount.address + ) && ( + + )}
{isCopied && Copied!}