|
1 | 1 | import { FC, useState } from 'react' |
2 | 2 | import { Trans, useTranslation } from 'react-i18next' |
3 | | -import { COLORS } from '../../../styles/theme/colors' |
4 | | -import Link from '@mui/material/Link' |
5 | | -import Typography from '@mui/material/Typography' |
| 3 | +import { Link } from '@oasisprotocol/ui-library/src/components/link' |
6 | 4 | import { SearchScope } from '../../../types/searchScope' |
7 | 5 | import * as externalLinks from '../../utils/externalLinks' |
8 | 6 | import { isLocalnet } from '../../utils/route-utils' |
@@ -45,29 +43,29 @@ export const VerificationIcon: FC<{ |
45 | 43 | </Link> |
46 | 44 | {!hideLink && |
47 | 45 | (verificationLevel ? ( |
48 | | - <Typography component="span" sx={{ fontSize: '12px', color: COLORS.brandExtraDark }}> |
| 46 | + <span className="text-xs"> |
49 | 47 | |
50 | 48 | <Trans |
51 | 49 | t={t} |
52 | 50 | i18nKey={'contract.verification.openInSourcify'} |
53 | 51 | components={{ |
54 | | - SourcifyLink: <Link {...sourcifyLinkProps} />, |
| 52 | + SourcifyLink: <Link className="text-inherit underline" {...sourcifyLinkProps} />, |
55 | 53 | }} |
56 | 54 | /> |
57 | 55 | <AbiPlaygroundLink address_eth={address_eth} scope={scope} /> |
58 | | - </Typography> |
| 56 | + </span> |
59 | 57 | ) : ( |
60 | | - <Typography component="span" sx={{ fontSize: '12px', color: COLORS.brandExtraDark }}> |
| 58 | + <span className="text-xs"> |
61 | 59 | |
62 | 60 | <Trans |
63 | 61 | t={t} |
64 | 62 | i18nKey={'contract.verification.verifyInSourcify'} |
65 | 63 | components={{ |
66 | | - SourcifyLink: <Link {...sourcifyLinkProps} />, |
| 64 | + SourcifyLink: <Link className="text-inherit underline" {...sourcifyLinkProps} />, |
67 | 65 | }} |
68 | 66 | />{' '} |
69 | 67 | {explainDelay && t('contract.verification.explainVerificationDelay')} |
70 | | - </Typography> |
| 68 | + </span> |
71 | 69 | ))} |
72 | 70 | </> |
73 | 71 | ) |
|
0 commit comments