diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 960ddf419..c3659b390 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1395,6 +1395,9 @@ "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_cliqz": { + "message": "New users are opted in to participating in Human Web. You may change this setting in custom setup or in the extension. " + }, "hub_home_header_info_link": { "message": "Learn More." }, diff --git a/app/hub/Views/HomeView/HomeView.jsx b/app/hub/Views/HomeView/HomeView.jsx index 7369d40a6..b22261ce3 100644 --- a/app/hub/Views/HomeView/HomeView.jsx +++ b/app/hub/Views/HomeView/HomeView.jsx @@ -34,9 +34,16 @@ 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'); + + let headerInfoText = t('hub_home_header_info'); + if (globals.BROWSER_INFO) { + if (globals.BROWSER_INFO.name === 'firefox') { + headerInfoText = t('hub_home_header_info_opted_out'); + } else if (globals.BROWSER_INFO.name === 'cliqz') { + headerInfoText = t('hub_home_header_info_cliqz'); + } + } + const tutorialFeatureClassNames = ClassNames('HomeView__onboardingFeature columns flex-container align-middle flex-dir-column', { 'feature-tutorial-complete': tutorial_complete, 'feature-tutorial': !tutorial_complete, diff --git a/app/hub/Views/SideNavigationView/SideNavigationViewContainer.jsx b/app/hub/Views/SideNavigationView/SideNavigationViewContainer.jsx index a738680f8..f3526640f 100644 --- a/app/hub/Views/SideNavigationView/SideNavigationViewContainer.jsx +++ b/app/hub/Views/SideNavigationView/SideNavigationViewContainer.jsx @@ -16,6 +16,7 @@ import PropTypes from 'prop-types'; import SideNavigationView from './SideNavigationView'; import globals from '../../../../src/classes/Globals'; +const { IS_CLIQZ } = globals; /** * @class Implement the Side Navigation View for the Ghostery Hub * @extends Component @@ -51,10 +52,9 @@ class SideNavigationViewContainer extends Component { { href: '/setup', icon: 'setup', text: t('hub_side_navigation_setup') }, { href: '/tutorial', icon: 'tutorial', text: t('hub_side_navigation_tutorial') }, { href: '/plus', icon: 'plus', text: t('hub_side_navigation_supporter') }, - { href: '/rewards', icon: 'rewards', text: t('hub_side_navigation_rewards') }, + ...(IS_CLIQZ ? [] : [{ href: '/rewards', icon: 'rewards', text: t('hub_side_navigation_rewards') }]), { href: '/products', icon: 'products', text: t('hub_side_navigation_products') } ]; - const bottomItems = user ? [ { id: 'email', href: `https://account.${globals.GHOSTERY_DOMAIN}.com/`, text: user.email }, { id: 'logout', text: t('hub_side_navigation_log_out'), clickHandler: this._handleLogoutClick },