@@ -54,16 +54,24 @@ const renderFAQListItem = (icon, label, description) => (
*/
const Step1_CreateAccountView = (props) => {
const { user, actions } = props;
- const { setSetupStep } = actions;
+ const { setSetupStep, setToast } = actions;
const email = user && user.email;
const [view, setView] = useState(CREATE_ACCOUNT);
+ const handleSkipButton = () => {
+ setSetupStep({ setup_step: LOGIN, origin: ONBOARDING });
+ setToast({
+ toastMessage: '',
+ toastClass: ''
+ });
+ };
+
const renderSkipLink = () => (
- setSetupStep({ setup_step: LOGIN, origin: ONBOARDING })}>
+ handleSkipButton()}>
{t('ghostery_dawn_onboarding_skip')}
@@ -75,7 +83,7 @@ const Step1_CreateAccountView = (props) => {
{t('ghostery_dawn_onboarding_you_are_signed_in_as')}
{email}
- setSetupStep({ setup_step: LOGIN, origin: ONBOARDING })}>
+ handleSkipButton()}>
{t('next')}
@@ -91,10 +99,10 @@ const Step1_CreateAccountView = (props) => {
{ t('ghostery_dawn_onboarding_sync_settings') }
{view === CREATE_ACCOUNT && (
-
setView(SIGN_IN)}>{t('ghostery_browser_hub_onboarding_already_have_account')}
+
setView(SIGN_IN)}>{t('ghostery_dawn_onboarding_already_have_account')}
)}
{view === SIGN_IN && (
-
setView(CREATE_ACCOUNT)}>{t('ghostery_browser_hub_onboarding_create_an_account')}
+
setView(CREATE_ACCOUNT)}>{t('ghostery_dawn_onboarding_create_an_account')}
)}
{view === CREATE_ACCOUNT ? (
diff --git a/app/ghostery-browser-hub/Views/OnboardingViews/Step1_CreateAccountView/__tests__/__snapshots__/Step1_CreateAccountView.test.jsx.snap b/app/ghostery-browser-hub/Views/OnboardingViews/Step1_CreateAccountView/__tests__/__snapshots__/Step1_CreateAccountView.test.jsx.snap
index ef2454236..4d2149cf0 100644
--- a/app/ghostery-browser-hub/Views/OnboardingViews/Step1_CreateAccountView/__tests__/__snapshots__/Step1_CreateAccountView.test.jsx.snap
+++ b/app/ghostery-browser-hub/Views/OnboardingViews/Step1_CreateAccountView/__tests__/__snapshots__/Step1_CreateAccountView.test.jsx.snap
@@ -7,25 +7,22 @@ exports[`app/hub/Views/Step1_CreateAccountView component Snapshot tests with rea
- ghostery_browser_hub_onboarding_create_a_ghostery_account
+ ghostery_dawn_onboarding_create_a_ghostery_account
- ghostery_browser_hub_onboarding_sync_settings
+ ghostery_dawn_onboarding_sync_settings
- ghostery_browser_hub_onboarding_already_have_account
+ ghostery_dawn_onboarding_already_have_account
-
- ghostery_browser_hub_onboarding_skip
+ ghostery_dawn_onboarding_skip