Skip to content

Commit 878bb92

Browse files
committed
style(home): update install buttons
1 parent 76d81fe commit 878bb92

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

components/WalletList/MetaMask.tsx

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,26 @@ const WalletListMetamask = () => {
2929
) : (
3030
<>
3131
<Typography variant="body1">Metamask</Typography>
32-
<Link href="https://metamask.io/" title="Go to Metamask">
33-
<Launch />
34-
</Link>
35-
<Button
36-
sx={{ ml: "auto" }}
37-
variant="contained"
38-
onClick={() => connectNEVM("metamask")}
39-
disabled={!availableWallets.metamask}
40-
>
41-
{availableWallets.metamask ? "Connect" : "Not installed"}
42-
</Button>
32+
{availableWallets.metamask ? (
33+
<Button
34+
sx={{ ml: "auto" }}
35+
variant="contained"
36+
onClick={() => connectNEVM("metamask")}
37+
>
38+
Connect
39+
</Button>
40+
) : (
41+
<Link
42+
href="https://metamask.io/"
43+
title="Go to Metamask"
44+
sx={{ ml: "auto" }}
45+
target="_blank"
46+
>
47+
<Button variant="contained">
48+
Install <Launch />
49+
</Button>
50+
</Link>
51+
)}
4352
</>
4453
)}
4554
</Box>

components/WalletList/PaliWallet.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ const InstallPaliWallet = () => {
1818
alt="PaliWallet logo"
1919
/>
2020
<Typography variant="body1">PaliWallet</Typography>
21-
<Link href="https://paliwallet.com/" title="Go to PaliWallet">
22-
<Launch />
21+
<Link
22+
href="https://paliwallet.com/"
23+
title="Go to PaliWallet"
24+
sx={{ ml: "auto" }}
25+
target="_blank"
26+
>
27+
<Button variant="contained">
28+
Install <Launch />
29+
</Button>
2330
</Link>
24-
<ConnectToPaliWallet />
2531
</Box>
2632
);
2733
};

0 commit comments

Comments
 (0)