From 79d65b7dd7f890f4141b7419ac611011a25f5a4e Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 25 Sep 2024 15:15:07 -0400 Subject: [PATCH] close wallet logged in modal when profile picture modal opens --- packages/stateful/components/wallet/WalletUi.tsx | 2 +- packages/stateful/components/wallet/WalletUiConnected.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/stateful/components/wallet/WalletUi.tsx b/packages/stateful/components/wallet/WalletUi.tsx index 29f0b48fa0..a5d00c9461 100644 --- a/packages/stateful/components/wallet/WalletUi.tsx +++ b/packages/stateful/components/wallet/WalletUi.tsx @@ -119,7 +119,7 @@ export const WalletUi = (props: WalletModalProps) => { {showWalletConnectQr ? ( ) : isWalletConnected ? ( - + ) : ( { diff --git a/packages/stateful/components/wallet/WalletUiConnected.tsx b/packages/stateful/components/wallet/WalletUiConnected.tsx index c2ba380f86..c63648a426 100644 --- a/packages/stateful/components/wallet/WalletUiConnected.tsx +++ b/packages/stateful/components/wallet/WalletUiConnected.tsx @@ -22,7 +22,8 @@ const keplrExtensionWallet = keplrExtensionWallets[0] export const WalletUiConnected = ({ walletRepo, -}: Pick) => { + setOpen, +}: WalletModalProps) => { const { t } = useTranslation() const { @@ -55,7 +56,10 @@ export const WalletUiConnected = ({ setUpdateProfileNftVisible(true)} + onClick={() => { + setOpen(false) + setUpdateProfileNftVisible(true) + }} size="lg" />