1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

BETA - Update verbiage for success messages after onboarding (#16343)

This commit is contained in:
David Walsh 2022-11-09 16:15:44 -06:00 committed by GitHub
parent 03af17747b
commit 35e25023d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 3 deletions

View File

@ -456,6 +456,15 @@
"betaPortfolioSite": {
"message": "beta portfolio site"
},
"betaTerms": {
"message": "BETA Terms of use"
},
"betaWalletCreationSuccessReminder1": {
"message": "MetaMask BETA cant recover your Secret Recovery Phrase."
},
"betaWalletCreationSuccessReminder2": {
"message": "MetaMask BETA will never ask you for your Secret Recovery Phrase."
},
"betaWelcome": {
"message": "Welcome to MetaMask Beta"
},

View File

@ -285,6 +285,13 @@ export const SETTINGS_CONSTANTS = [
route: `${ABOUT_US_ROUTE}#contactus`,
icon: 'fa fa-info-circle',
},
{
tabMessage: (t) => t('about'),
sectionMessage: (t) => t('betaTerms'),
descriptionMessage: (t) => t('betaTerms'),
route: `${ABOUT_US_ROUTE}#beta-terms`,
icon: 'fa fa-info-circle',
},
{
tabMessage: (t) => t('experimental'),
sectionMessage: (t) => t('enableEIP1559V2'),

View File

@ -187,7 +187,7 @@ describe('Settings Search Utils', () => {
});
it('should get good about section number', () => {
expect(getNumberOfSettingsInSection(t, t('about'))).toStrictEqual(8);
expect(getNumberOfSettingsInSection(t, t('about'))).toStrictEqual(9);
});
});

View File

@ -17,6 +17,7 @@ import {
ONBOARDING_PRIVACY_SETTINGS_ROUTE,
} from '../../../helpers/constants/routes';
import { setCompletedOnboarding } from '../../../store/actions';
import { isBeta } from '../../../helpers/utils/build-types';
export default function CreationSuccessful() {
const history = useHistory();
@ -52,12 +53,16 @@ export default function CreationSuccessful() {
<ul>
<li>
<Typography variant={TYPOGRAPHY.H4}>
{t('walletCreationSuccessReminder1')}
{isBeta()
? t('betaWalletCreationSuccessReminder1')
: t('walletCreationSuccessReminder1')}
</Typography>
</li>
<li>
<Typography variant={TYPOGRAPHY.H4}>
{t('walletCreationSuccessReminder2')}
{isBeta()
? t('betaWalletCreationSuccessReminder2')
: t('walletCreationSuccessReminder2')}
</Typography>
</li>
<li>

View File

@ -53,4 +53,8 @@
color: var(--color-text-muted);
margin-bottom: 15px;
}
&__tag {
margin-inline-start: 8px;
}
}

View File

@ -2,6 +2,8 @@ import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Button from '../../../components/ui/button';
import { Tag } from '../../../components/component-library/tag';
import { SUPPORT_REQUEST_LINK } from '../../../helpers/constants/common';
import { isBeta } from '../../../helpers/utils/build-types';
import {
@ -73,6 +75,20 @@ export default class InfoTab extends PureComponent {
{t('terms')}
</Button>
</div>
{isBeta() ? (
<div ref={this.settingsRefs[8]} className="info-tab__link-item">
<Button
type="link"
href="https://metamask.io/beta-terms.html"
target="_blank"
rel="noopener noreferrer"
className="info-tab__link-text"
>
{t('betaTerms')}
<Tag label={t('new')} className="info-tab__tag" />
</Button>
</div>
) : null}
<div ref={this.settingsRefs[4]} className="info-tab__link-item">
<Button
type="link"