We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0bc0be commit 22f660aCopy full SHA for 22f660a
src/scripts/components/ContactDetails/ContactDetails.js
@@ -9,6 +9,7 @@ import { StepContext } from "../../context/StepContext";
9
import { UserContext } from "../../context/UserContext";
10
import Modal from "../Modal/Modal";
11
import PrivacyPolicy from "../PrivacyPolicy/PrivacyPolicy";
12
+import { useHistory } from "react-router";
13
14
export default function ContactDetails() {
15
@@ -19,8 +20,11 @@ export default function ContactDetails() {
19
20
21
const validation = new ValidationForm();
22
23
+ let history = useHistory();
24
+
25
const nextStep = () => {
26
setStep(step + 1);
27
+ history.push("/step2");
28
}
29
30
const openCloseModal = () => {
0 commit comments