added steps to loan application
This commit was merged in pull request #36.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user