Skip to content

Commit

Permalink
feat: Update Metamask login text to reflect browser-injected wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed Jun 4, 2024
1 parent c9797f2 commit 0ae31c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"switch_network": "Switch to network '{{network}}'",
"login_walletconnect": "Connect with WalletConnect",
"login_walletconnect_short": "WalletConnect",
"login_metamask": "Connect with Metamask",
"login_metamask_short": "Metamask",
"login_metamask": "Connect with browser-injected wallet",
"login_metamask_short": "Browser-injected wallet",
"login": "Connect",
"disconnect": "Disconnect",
"close": "Close",
Expand Down
15 changes: 10 additions & 5 deletions src/components/account/login_metamask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from "next-i18next";
import { useSnackbar } from "notistack";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faRightToBracket } from "@fortawesome/free-solid-svg-icons";
import { useMediaQuery, useTheme } from "@mui/material";
import { Typography, useMediaQuery, useTheme } from "@mui/material";
import { useDispatch, useSelector } from "react-redux";

export default function LoginWithMetaMaskButton(props: any) {
Expand Down Expand Up @@ -50,10 +50,15 @@ export default function LoginWithMetaMaskButton(props: any) {

if (! isConnected ) {
button = (
<Button variant="contained" color="secondary" onClick={login} sx={{ mr: 1}} fullWidth>
<FontAwesomeIcon icon={faRightToBracket} className="fa" />
{buttonText}
</Button>
<div>
<Button variant="contained" color="secondary" onClick={login} sx={{ mr: 1}} fullWidth>
<FontAwesomeIcon icon={faRightToBracket} className="fa" />
{buttonText}
</Button>
<Typography sx={{ textAlign: 'center' }} color="ButtonText">
<small>(MetaMask, Rabby Wallet, Coinbase Wallet, ...)</small>
</Typography>
</div>
);
}

Expand Down

0 comments on commit 0ae31c4

Please sign in to comment.