File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useEffect } from "react";
22import { useDispatch , useSelector } from "react-redux" ;
33import { Formik } from "formik" ;
44import { object as YupObject } from "yup" ;
5+ import { history } from "popup/App" ;
56import { createAccount , publicKeySelector } from "popup/ducks/authServices" ;
67import { Onboarding } from "popup/components/Layout/Fullscreen/Onboarding" ;
78import Form from "popup/components/Form" ;
@@ -19,7 +20,6 @@ import {
1920 termsOfUse as termsofUseValidator ,
2021} from "popup/components/Form/validators" ;
2122import { EMOJI } from "popup/constants" ;
22- import { history } from "popup/App" ;
2323
2424const CreatePassword = ( ) => {
2525 const publicKey = useSelector ( publicKeySelector ) ;
@@ -58,7 +58,7 @@ const CreatePassword = () => {
5858 header = "Create a password"
5959 subheader = "Min 10 characters"
6060 icon = { EMOJI . see_no_evil }
61- goBack = { ( ) => window . location . replace ( "/" ) }
61+ goBack = { ( ) => history . push ( { pathname : "/" } ) }
6262 >
6363 < Formik
6464 initialValues = { initialValues }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useEffect } from "react";
22import { useDispatch , useSelector } from "react-redux" ;
33import { Formik } from "formik" ;
44import { object as YupObject , string as YupString } from "yup" ;
5+ import { history } from "popup/App" ;
56import {
67 password as passwordValidator ,
78 confirmPassword as confirmPasswordValidator ,
@@ -81,7 +82,7 @@ const RecoverAccount = () => {
8182 < Onboarding
8283 header = "Recover wallet from backup phrase"
8384 icon = { icon }
84- goBack = { ( ) => window . location . replace ( "/" ) }
85+ goBack = { ( ) => history . push ( { pathname : "/" } ) }
8586 >
8687 < >
8788 < FormRow >
You can’t perform that action at this time.
0 commit comments