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 22f660a commit 225bd94Copy full SHA for 225bd94
src/scripts/components/InvestmentPlans/InvestmentPlans.js
@@ -6,6 +6,7 @@ import useForm from "../../hooks/useForm/useForm";
6
import ValidationForm from "../../validation/validationForm";
7
import { StepContext } from "../../context/StepContext";
8
import { UserContext } from "../../context/UserContext";
9
+import { useHistory } from "react-router";
10
11
export default function InvestmentPlans() {
12
@@ -16,8 +17,11 @@ export default function InvestmentPlans() {
16
17
18
const validation = new ValidationForm();
19
20
+ let history = useHistory();
21
+
22
const nextStep = () => {
23
setStep(step + 1);
24
+ history.push("/step3");
25
}
26
27
return (
0 commit comments