From 17b8fc9f1abe11367373f1a1b246e90c6ee70940 Mon Sep 17 00:00:00 2001 From: Callum McIntyre Date: Fri, 21 Apr 2023 10:21:07 +0000 Subject: [PATCH 1/2] Change disconnect button disable logic Instead of using wallet use connected, which also works for MWA --- packages/ui/ant-design/src/WalletDisconnectButton.tsx | 4 ++-- packages/ui/material-ui/src/WalletDisconnectButton.tsx | 4 ++-- packages/ui/react-ui/src/WalletDisconnectButton.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ui/ant-design/src/WalletDisconnectButton.tsx b/packages/ui/ant-design/src/WalletDisconnectButton.tsx index c372a0fb1..c54ba7363 100644 --- a/packages/ui/ant-design/src/WalletDisconnectButton.tsx +++ b/packages/ui/ant-design/src/WalletDisconnectButton.tsx @@ -14,7 +14,7 @@ export const WalletDisconnectButton: FC = ({ onClick, ...props }) => { - const { wallet, disconnect, disconnecting } = useWallet(); + const { wallet, connected, disconnect, disconnecting } = useWallet(); const handleClick: MouseEventHandler = useCallback( (event) => { @@ -38,7 +38,7 @@ export const WalletDisconnectButton: FC = ({ return (