Skip to content

Commit 22f660a

Browse files
committed
[add] history to the step1 to go to step2
1 parent d0bc0be commit 22f660a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/scripts/components/ContactDetails/ContactDetails.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { StepContext } from "../../context/StepContext";
99
import { UserContext } from "../../context/UserContext";
1010
import Modal from "../Modal/Modal";
1111
import PrivacyPolicy from "../PrivacyPolicy/PrivacyPolicy";
12+
import { useHistory } from "react-router";
1213

1314
export default function ContactDetails() {
1415

@@ -19,8 +20,11 @@ export default function ContactDetails() {
1920

2021
const validation = new ValidationForm();
2122

23+
let history = useHistory();
24+
2225
const nextStep = () => {
2326
setStep(step + 1);
27+
history.push("/step2");
2428
}
2529

2630
const openCloseModal = () => {

0 commit comments

Comments
 (0)