diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 51fc98d76..765174e11 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -2436,7 +2436,7 @@ "ghostery_dawn_onboarding_select_option": { "message": "Select option" }, - "ghostery_dawn_onboarding_you_have_selected_an_alternate_serach_engine": { + "ghostery_dawn_onboarding_you_have_selected_an_alternate_search_engine": { "message": "You have selected an alternate search engine:" }, "ghostery_dawn_onboarding_create_account_for_trial": { diff --git a/app/dawn-hub/Views/OnboardingView/OnboardingConstants.js b/app/dawn-hub/Views/OnboardingView/OnboardingConstants.js index 522154ce7..71eb1e4cb 100644 --- a/app/dawn-hub/Views/OnboardingView/OnboardingConstants.js +++ b/app/dawn-hub/Views/OnboardingView/OnboardingConstants.js @@ -19,3 +19,19 @@ export const BLOCK_SETTINGS = '2'; export const CHOOSE_DEFAULT_SEARCH = '3'; export const CHOOSE_PLAN = '4'; export const SUCCESS = '5'; + +// Setup Step Constants + +// Step 1 +export const SIGN_IN_SUCCESSFUL = '1'; +export const CREATE_ACCOUNT_SUCCESSFUL = '2'; +export const SKIP_ACCOUNT_CREATION = '3'; + +// Step 4 +export const FREE_USER_NO_TRIAL = '1'; +export const FREE_USER_PLUS_TRIAL = '2'; +export const FREE_USER_PLUS_SUBSCRIPTION = '3'; +export const FREE_USER_PREMIUM_SUBSCRIPTION = '4'; +export const PLUS_SUBSCRIBER_KEEP_SUBSCRIPTION = '5'; +export const PLUS_SUBSCRIBER_PREMIUM_SUBSCRIPTION = '6'; +export const PREMIUM_SUBSCRIBER_KEEP_SUBSCRIPTION = '7'; diff --git a/app/dawn-hub/Views/OnboardingViews/Step1_CreateAccountView/Step1_CreateAccountView.jsx b/app/dawn-hub/Views/OnboardingViews/Step1_CreateAccountView/Step1_CreateAccountView.jsx index 690decabb..2d8374ef9 100644 --- a/app/dawn-hub/Views/OnboardingViews/Step1_CreateAccountView/Step1_CreateAccountView.jsx +++ b/app/dawn-hub/Views/OnboardingViews/Step1_CreateAccountView/Step1_CreateAccountView.jsx @@ -17,7 +17,13 @@ import PropTypes from 'prop-types'; import Step1_LogInForm from '../Step1_LogInForm'; import Step1_CreateAccountForm from '../Step1_CreateAccountForm'; import globals from '../../../../../src/classes/Globals'; -import { LOGIN, ONBOARDING } from '../../OnboardingView/OnboardingConstants'; +import { + LOGIN, + ONBOARDING, + SIGN_IN_SUCCESSFUL, + CREATE_ACCOUNT_SUCCESSFUL, + SKIP_ACCOUNT_CREATION +} from '../../OnboardingView/OnboardingConstants'; const SIGN_IN = 'SIGN_IN'; const CREATE_ACCOUNT = 'CREATE_ACCOUNT'; @@ -59,8 +65,12 @@ const Step1_CreateAccountView = (props) => { const [view, setView] = useState(CREATE_ACCOUNT); - const handleSkipButton = () => { - setSetupStep({ setup_step: LOGIN, origin: ONBOARDING }); + const handleSkipButton = (dawn_setup_number) => { + setSetupStep({ + setup_step: LOGIN, + dawn_setup_number, + origin: ONBOARDING, + }); setToast({ toastMessage: '', toastClass: '' @@ -70,6 +80,12 @@ const Step1_CreateAccountView = (props) => { const handleNextOnSelectPlanStep = () => { const { prev } = props; + setSetupStep({ + setup_step: LOGIN, + dawn_setup_number: CREATE_ACCOUNT_SUCCESSFUL, + origin: ONBOARDING, + }); + setToast({ toastMessage: '', toastClass: '' @@ -82,7 +98,7 @@ const Step1_CreateAccountView = (props) => {
$11.99
-{t('per_month')}
-{t('hub_upgrade_maximum_protection')}
-$11.99
+{t('per_month')}
+{t('hub_upgrade_maximum_protection')}
+