@@ -39,7 +53,7 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
handleWalletClick(event as any, Wallet.POLKADOT)}
name='Polkadot.js'
icon={
@@ -49,11 +63,13 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
/>
}
isOptionalLogin={isOptionalLogin}
+ isAvailable={availableWallets[Wallet.POLKADOT]}
+ isLoginFlow={isLoginFlow}
text='Polkadot.js'
/>
handleWalletClick(event as any, Wallet.TALISMAN)}
name='Talisman'
icon={
@@ -63,11 +79,13 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
/>
}
isOptionalLogin={isOptionalLogin}
+ isAvailable={availableWallets[Wallet.TALISMAN]}
text='Talisman'
+ isLoginFlow={isLoginFlow}
/>
handleWalletClick(event as any, Wallet.SUBWALLET)}
name='SubWallet'
icon={
@@ -76,14 +94,16 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
className={`h-8 w-8 px-1 ${isOptionalLogin ? 'mr-1' : ''}`}
/>
}
+ isAvailable={availableWallets[Wallet.SUBWALLET]}
isOptionalLogin={isOptionalLogin}
text='SubWallet'
+ isLoginFlow={isLoginFlow}
/>
handleWalletClick(event as any, Wallet.POLKAGATE)}
name='PolkaGate'
icon={
@@ -92,13 +112,15 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
className='h-8 w-8'
/>
}
+ isAvailable={availableWallets[Wallet.POLKAGATE]}
isOptionalLogin={isOptionalLogin}
text='PolkaGate'
+ isLoginFlow={isLoginFlow}
/>
{showPolkasafe && onPolkasafeSelect && (
{
onPolkasafeSelect(true);
handleWalletClick(event as any, Wallet.POLKASAFE);
@@ -110,14 +132,16 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
className='ml-1 mt-3 h-9 w-7'
/>
}
+ isAvailable={availableWallets[Wallet.POLKASAFE]}
isOptionalLogin={isOptionalLogin}
text='Polkasafe (Multisig)'
+ isLoginFlow={isLoginFlow}
/>
)}
{(window as any).walletExtension?.isNovaWallet && (
handleWalletClick(event as any, Wallet.NOVAWALLET)}
name='Nova Wallet'
icon={
@@ -126,8 +150,10 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
className='h-6 w-6'
/>
}
+ isAvailable={availableWallets[Wallet.NOVAWALLET]}
isOptionalLogin={isOptionalLogin}
text='Nova Wallet'
+ isLoginFlow={isLoginFlow}
/>
)}
@@ -136,7 +162,7 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
{['moonbase', 'moonbeam', 'moonriver'].includes(network) ? (
handleWalletClick(event as any, Wallet.METAMASK)}
name='MetaMask'
icon={
@@ -145,14 +171,16 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
className='h-6 w-6'
/>
}
+ isAvailable={isMetamaskWallet}
isOptionalLogin={isOptionalLogin}
text='MetaMask'
+ isLoginFlow={isLoginFlow}
/>
) : null}
{['polymesh'].includes(network) ? (
handleWalletClick(event as any, Wallet.POLYWALLET)}
name='PolyWallet'
icon={
@@ -161,8 +189,10 @@ const WalletButtons = ({ onWalletSelect, disabled, showPolkasafe, onPolkasafeSel
className='h-6 w-6'
/>
}
+ isAvailable={availableWallets[Wallet.POLYWALLET]}
isOptionalLogin={isOptionalLogin}
text='PolyWallet'
+ isLoginFlow={isLoginFlow}
/>
) : null}
diff --git a/src/components/Login/Web2Login.tsx b/src/components/Login/Web2Login.tsx
index ce9f5cefef..def7a1a861 100644
--- a/src/components/Login/Web2Login.tsx
+++ b/src/components/Login/Web2Login.tsx
@@ -38,7 +38,7 @@ const WalletButtons = dynamic(() => import('./WalletButtons'), {
const Container = styled.article`
.changeColor .ant-alert-message {
- color: var(--bodyBlue);
+ color: #1677ff;
}
`;
@@ -181,6 +181,7 @@ const Web2Login: FC