mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Import SRP page (#13568)
* Import SRP page * Moved url link for SRP to the zendesk urls constant in the constants folder
This commit is contained in:
parent
d239d0fddb
commit
bd54fafe7d
@ -7,6 +7,8 @@ const ZENDESK_URLS = {
|
||||
'https://metamask.zendesk.com/hc/en-us/articles/360015489331',
|
||||
TOKEN_SAFETY_PRACTICES:
|
||||
'https://metamask.zendesk.com/hc/en-us/articles/4403988839451',
|
||||
SECRET_RECOVERY_PHRASE:
|
||||
'https://metamask.zendesk.com/hc/en-us/articles/360060826432-What-is-a-Secret-Recovery-Phrase-and-how-to-keep-your-crypto-wallet-secure',
|
||||
};
|
||||
|
||||
export default ZENDESK_URLS;
|
||||
|
@ -18,10 +18,11 @@ import {
|
||||
import { ONBOARDING_CREATE_PASSWORD_ROUTE } from '../../../helpers/constants/routes';
|
||||
import { clearClipboard } from '../../../helpers/utils/util';
|
||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||
import ZENDESK_URLS from '../../../helpers/constants/zendesk-url';
|
||||
|
||||
export default function ImportSRP({ submitSecretRecoveryPhrase }) {
|
||||
const [secretRecoveryPhrase, setSecretRecoveryPhrase] = useState('');
|
||||
const [revealSRP, setRevealSRP] = useState(true);
|
||||
const [revealSRP, setRevealSRP] = useState(false);
|
||||
const [error, setError] = useState('');
|
||||
const history = useHistory();
|
||||
const t = useI18nContext();
|
||||
@ -56,11 +57,11 @@ export default function ImportSRP({ submitSecretRecoveryPhrase }) {
|
||||
<a
|
||||
key="learnMore"
|
||||
type="link"
|
||||
href="https://metamask.zendesk.com/hc/en-us/articles/360036464651"
|
||||
href={ZENDESK_URLS.SECRET_RECOVERY_PHRASE}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{t('learnMore')}
|
||||
{t('learnMoreUpperCase')}
|
||||
</a>,
|
||||
])}
|
||||
</Typography>
|
||||
|
Loading…
Reference in New Issue
Block a user