Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1832/change intro hub copy to be opt in #436

Merged
merged 5 commits into from Aug 22, 2019
@@ -1389,9 +1389,12 @@
"hub_home_header_checkbox_label": {
"message": "Share additional anonymous analytics data to improve Ghostery’s performance."
},
"hub_home_header_info": {
"message": "New users are opted in to participating in Human Web and Ghostery Rewards. You may change these settings in custom setup or in the extension. "
"hub_home_header_info_opted_out": {
"message": "New users are opted out of participating in Ghostery Rewards and Human Web by default. You may opt in to these recommended features in custom setup or in the extension. "
},
"hub_home_header_info": {
"message": "New users are opted in to participating in Human Web and Ghostery Rewards. You may change these settings in custom setup or in the extension. "
},
"hub_home_header_info_link": {
"message": "Learn More."
},
@@ -34,6 +34,9 @@ const HomeView = (props) => {
isPlus,
} = props;
const accountHref = `https://account.${globals.GHOSTERY_DOMAIN}.com`;
const headerInfoText = (globals.BROWSER_INFO && globals.BROWSER_INFO.name === 'firefox')
? t('hub_home_header_info_opted_out')
: t('hub_home_header_info');
const tutorialFeatureClassNames = ClassNames('HomeView__onboardingFeature columns flex-container align-middle flex-dir-column', {
'feature-tutorial-complete': tutorial_complete,
'feature-tutorial': !tutorial_complete,
@@ -68,7 +71,7 @@ const HomeView = (props) => {
</div>
<div className="HomeView__supportContainer HomeView--pad-left HomeView--firefoxFontSize">
<span>
{t('hub_home_header_info')}
{headerInfoText}
</span>
<a href="https://www.ghostery.com/faqs/" alt={t('hub_home_header_info_link')} target="_blank" rel="noopener noreferrer">
{t('hub_home_header_info_link')}
ProTip! Use n and p to navigate between commits in a pull request.