diff --git a/ui/pages/home/home.component.js b/ui/pages/home/home.component.js index b89fad2ad..9c261bfe9 100644 --- a/ui/pages/home/home.component.js +++ b/ui/pages/home/home.component.js @@ -378,6 +378,23 @@ export default class Home extends PureComponent { }); }; + ///: BEGIN:ONLY_INCLUDE_IN(build-main) + onSupportLinkClick = () => { + this.context.trackEvent( + { + category: MetaMetricsEventCategory.Home, + event: MetaMetricsEventName.SupportLinkClicked, + properties: { + url: SUPPORT_LINK, + }, + }, + { + contextPropsIntoEventProperties: [MetaMetricsContextProp.PageTitle], + }, + ); + }; + ///: END:ONLY_INCLUDE_IN + onOutdatedBrowserWarningClose = () => { const { setOutdatedBrowserWarningLastShown } = this.props; setOutdatedBrowserWarningLastShown(new Date().getTime()); @@ -778,7 +795,7 @@ export default class Home extends PureComponent { completedOnboarding && !onboardedInThisUISession && showTermsOfUsePopup; ///: END:ONLY_INCLUDE_IN - ///: BEGIN:ONLY_INCLUDE_IN(build-main,build-mmi) + ///: BEGIN:ONLY_INCLUDE_IN(build-mmi) // The style in activity screen for support is different const activitySupportDisplayStyle = defaultHomeActiveTabName === 'activity' @@ -884,21 +901,57 @@ export default class Home extends PureComponent { history.push(`${ASSET_ROUTE}/${asset}`) } /> + { + ///: BEGIN:ONLY_INCLUDE_IN(build-main) + + {t('needHelpLinkText')} + + ///: END:ONLY_INCLUDE_IN + } - { - ///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask) - + + { + ///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask) - - ///: END:ONLY_INCLUDE_IN - } + ///: END:ONLY_INCLUDE_IN + } + { + ///: BEGIN:ONLY_INCLUDE_IN(build-main) + + {t('needHelpLinkText')} + + ///: END:ONLY_INCLUDE_IN + } + + { + ///: BEGIN:ONLY_INCLUDE_IN(build-main) + + {t('needHelpLinkText')} + + ///: END:ONLY_INCLUDE_IN + } - { - ///: BEGIN:ONLY_INCLUDE_IN(build-main) - { - this.context.trackEvent( - { - category: MetaMetricsEventCategory.Home, - event: MetaMetricsEventName.SupportLinkClicked, - properties: { - url: SUPPORT_LINK, - }, - }, - { - contextPropsIntoEventProperties: [ - MetaMetricsContextProp.PageTitle, - ], - }, - ); - }} - externalLink - > - {t('needHelpLinkText')} - - ///: END:ONLY_INCLUDE_IN - } { ///: BEGIN:ONLY_INCLUDE_IN(build-mmi)