From 5c92c8f15678221fb67e0fe39e136df9e73b96c3 Mon Sep 17 00:00:00 2001 From: reasje Date: Wed, 6 Sep 2023 11:45:14 +0330 Subject: [PATCH 1/2] feat: Added AXS wallet to wallet list --- public/icons/wallets/axs.svg | 5 +++++ src/components/WalletConnection/WalletSelector.tsx | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 public/icons/wallets/axs.svg diff --git a/public/icons/wallets/axs.svg b/public/icons/wallets/axs.svg new file mode 100644 index 0000000..3ccdb2c --- /dev/null +++ b/public/icons/wallets/axs.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/WalletConnection/WalletSelector.tsx b/src/components/WalletConnection/WalletSelector.tsx index c117588..fb8cbda 100644 --- a/src/components/WalletConnection/WalletSelector.tsx +++ b/src/components/WalletConnection/WalletSelector.tsx @@ -26,10 +26,10 @@ const WalletRow = ({ walletName, walletType }: WalletRowProps) => { case WalletType.INJECTED: return ( {`browser ); case WalletType.WALLET_CONNECT: @@ -192,8 +192,8 @@ export const WalletSelector = () => { {error && {handleBlocking()}} Date: Wed, 6 Sep 2023 13:30:00 +0330 Subject: [PATCH 2/2] fix: Take back browser wallet option --- .../WalletConnection/WalletSelector.tsx | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/src/components/WalletConnection/WalletSelector.tsx b/src/components/WalletConnection/WalletSelector.tsx index fb8cbda..e0131a8 100644 --- a/src/components/WalletConnection/WalletSelector.tsx +++ b/src/components/WalletConnection/WalletSelector.tsx @@ -24,14 +24,26 @@ const WalletRow = ({ walletName, walletType }: WalletRowProps) => { const getWalletIcon = (walletType: WalletType) => { switch (walletType) { case WalletType.INJECTED: - return ( - {`AXS - ); + if (walletName == 'AXS Wallet') { + return ( + {`AXS + ); + } else { + return ( + {`browser + ); + } + case WalletType.WALLET_CONNECT: return ( { {error && {handleBlocking()}} +