Skip to content

Commit

Permalink
Merge pull request #757 from Magickbase/fix/i18n-import-token
Browse files Browse the repository at this point in the history
fix: i18n for import token title
  • Loading branch information
FrederLu authored Dec 5, 2022
2 parents 8371f1c + 126eaee commit 6387614
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/token/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,12 @@ const Token: React.FC<Props> = () => {
{t(`tokenInfo`)}
{token?.eth_type === 'ERC20' ? (
<div className="tooltip" data-tooltip={t('import-token-into-metamask')}>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/logos/metamask.png"
alt="MetaMask"
className={styles.metamask}
title={t('import-into-metamask')}
title={t('import-token-into-metamask')}
onClick={handleImportIntoMetamask}
/>
</div>
Expand Down
5 changes: 5 additions & 0 deletions pages/token/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
align-items: center;
justify-content: space-between;
padding-right: 1rem;
:global {
& .tooltip:hover::before {
min-width: 180px;
}
}
}

.metamask {
Expand Down

0 comments on commit 6387614

Please sign in to comment.