added steps to loan application

This commit was merged in pull request #36.
This commit is contained in:
victorAnumudu
2024-04-22 15:42:40 +01:00
parent 085b2d4aaa
commit 9ce7110a5d
8 changed files with 482 additions and 59 deletions
+11 -6
View File
@@ -1,11 +1,16 @@
import { Button, InputCompOne, Stepper } from "..";
import { useNavigate } from "react-router-dom";
import { RouteHandler } from "../../router/routes";
// import { useNavigate } from "react-router-dom";
// import { RouteHandler } from "../../router/routes";
export default function DashboardFormInit() {
let navigate = useNavigate();
type Props = {
handleNextStep:()=>any
}
export default function DashboardFormInit({handleNextStep}:Props) {
// let navigate = useNavigate();
// const navigateToProfile = () => navigate(RouteHandler.dashboardProfile);
const navigateToProfile = () => navigate(RouteHandler.dashboardProfile);
return (
<div className="w-full">
<div className="w-full flex justify-center">
@@ -43,7 +48,7 @@ export default function DashboardFormInit() {
className="my-8 max-w-[25.875rem] btn-Y text-black w-full h-11"
text="Next"
type="button"
onClick={navigateToProfile}
onClick={handleNextStep}
/>
</div>
</div>