From 6510198d4f66211f71b8ed3054463616d0c3aeb5 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp <15185355+baktun14@users.noreply.github.com> Date: Tue, 3 Dec 2024 20:51:11 -0500 Subject: [PATCH] fix: only show banner when user doesn't have managed wallet --- .../src/components/layout/Layout.tsx | 4 ++-- .../src/hooks/useHasCreditCardBanner.ts | 22 +++++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/apps/deploy-web/src/components/layout/Layout.tsx b/apps/deploy-web/src/components/layout/Layout.tsx index 397f7531b..15edbabc1 100644 --- a/apps/deploy-web/src/components/layout/Layout.tsx +++ b/apps/deploy-web/src/components/layout/Layout.tsx @@ -53,7 +53,7 @@ const LayoutApp: React.FunctionComponent = ({ children, isLoading, isUsin const [isNavOpen, setIsNavOpen] = useState(true); const [isMobileOpen, setIsMobileOpen] = useState(false); const { refreshNodeStatuses, isSettingsInit } = useSettings(); - const { isWalletLoaded } = useWallet(); + const { isWalletLoaded, hasManagedWallet } = useWallet(); const smallScreen = useMediaQuery(muiTheme.breakpoints.down("md")); const hasCreditCardBanner = useHasCreditCardBanner(); @@ -94,7 +94,7 @@ const LayoutApp: React.FunctionComponent = ({ children, isLoading, isUsin
Credit Card payments are now available! - + {!hasManagedWallet && }