From 85b964bb06f4a602b778cba2b4ad2c29e051e898 Mon Sep 17 00:00:00 2001 From: William Hua Date: Sun, 10 Nov 2024 15:28:26 -0500 Subject: [PATCH] password lock button --- src/routes/Wallet.tsx | 10 ++++++++++ src/stores/AuthStore.ts | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/src/routes/Wallet.tsx b/src/routes/Wallet.tsx index be86dae..e2e93bf 100644 --- a/src/routes/Wallet.tsx +++ b/src/routes/Wallet.tsx @@ -69,6 +69,7 @@ function Wallet() { const navigate = useNavigate() const accountAddress = useObservable(authStore.accountAddress) + const isPasswordSet = useObservable(authStore.isPasswordSet) const isSigningTxn = useObservable(walletStore.isSigningTxn) const isSigningMsg = useObservable(walletStore.isSigningMsg) @@ -387,6 +388,15 @@ function Wallet() { onClick={() => setIsNetworkModalOpen(true)} /> + {isPasswordSet && ( +