Skip to content

Commit

Permalink
Added code fence to remove backup notice (#19840)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertolive authored Jun 30, 2023
1 parent 59980f1 commit 5545e5e
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions ui/pages/home/home.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ export default class Home extends PureComponent {
}
/>
) : null}

{removeNftMessage === 'success' ? (
<ActionableMessage
type="danger"
Expand Down Expand Up @@ -578,22 +577,26 @@ export default class Home extends PureComponent {
key="home-web3ShimUsageNotification"
/>
) : null}
{shouldShowSeedPhraseReminder ? (
<HomeNotification
descriptionText={t('backupApprovalNotice')}
acceptText={t('backupNow')}
onAccept={() => {
const backUpSRPRoute = `${ONBOARDING_SECURE_YOUR_WALLET_ROUTE}/?isFromReminder=true`;
if (isPopup) {
global.platform.openExtensionInBrowser(backUpSRPRoute);
} else {
history.push(backUpSRPRoute);
}
}}
infoText={t('backupApprovalInfo')}
key="home-backupApprovalNotice"
/>
) : null}
{
///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask)
shouldShowSeedPhraseReminder ? (
<HomeNotification
descriptionText={t('backupApprovalNotice')}
acceptText={t('backupNow')}
onAccept={() => {
const backUpSRPRoute = `${ONBOARDING_SECURE_YOUR_WALLET_ROUTE}/?isFromReminder=true`;
if (isPopup) {
global.platform.openExtensionInBrowser(backUpSRPRoute);
} else {
history.push(backUpSRPRoute);
}
}}
infoText={t('backupApprovalInfo')}
key="home-backupApprovalNotice"
/>
) : null
///: END:ONLY_INCLUDE_IN
}
{infuraBlocked && this.state.canShowBlockageNotification ? (
<HomeNotification
descriptionText={t('infuraBlockedNotification', [
Expand Down

0 comments on commit 5545e5e

Please sign in to comment.