Fixing ESLint warnings (#2723)

* Fixing warnings

* Reverting and disabling ESLint in some cases

* Reverting Next Images

* Reverting file, bad merge

* Targeting ESLint to line

* Additional warnings

* New warning squished

* More tweaks and major fixes

* Uneeded conf

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Leo Giovanetti
2022-05-14 10:49:39 -03:00
committed by GitHub
parent 93bd4ed79e
commit 212fd1bc14
39 changed files with 211 additions and 116 deletions

View File

@@ -89,12 +89,15 @@ const CryptoSection = (props: CryptoSectionProps) => {
}
return <div />;
}, [props.verified]);
}, [props.pathname, props.verified]);
const verifyButton = useMemo(() => {
return (
<Button color="secondary" onClick={verifyWallet} type="button" id="hasToken" name="hasToken">
<img className="mr-1 h-5" src="/apps/metamask.svg" />
{
// eslint-disable-next-line @next/next/no-img-element
<img className="mr-1 h-5" src="/apps/metamask.svg" alt="MetaMask" />
}
{t("verify_wallet")}
</Button>
);
@@ -103,7 +106,10 @@ const CryptoSection = (props: CryptoSectionProps) => {
const connectButton = useMemo(() => {
return (
<Button color="secondary" onClick={connectMetamask} type="button">
<img className="mr-1 h-5" src="/apps/metamask.svg" />
{
// eslint-disable-next-line @next/next/no-img-element
<img className="mr-1 h-5" src="/apps/metamask.svg" alt="MetaMask" />
}
{t("connect_metamask")}
</Button>
);
@@ -118,7 +124,10 @@ const CryptoSection = (props: CryptoSectionProps) => {
await connectMetamask();
await verifyWallet();
}}>
<img className="mr-1 h-5" src="/apps/metamask.svg" />
{
// eslint-disable-next-line @next/next/no-img-element
<img className="mr-1 h-5" src="/apps/metamask.svg" alt="MetaMask" />
}
{t("verify_wallet")}
</Button>
);