Files
digifi-www/src/components/GetStarted/GetStarted.tsx
T
2024-03-21 11:29:38 +01:00

49 lines
1.0 KiB
TypeScript

import React from "react";
import BasicInfo from "./BasicInfo";
const GetStarted = () => {
const [step, setStep] = React.useState(1);
const handleNextStep: any = () => {
setStep(step + 1);
};
// const handlePreviousStep: React.MouseEvent<HTMLButtonElement> = () => {
// setStep(step - 1);
// };
const [inputValues, setInputValues] = React.useState({
title: "",
marital: "",
agentId: "",
bvn: "",
firstName: "",
phone: "",
email: "",
surname: "",
dob: "",
secondName: "",
spouseBVN: "",
});
return (
<div className="w-full flex items-center justify-center">
<div className="containerMode">
{/* Main */}
<main>
{step === 1 && (
<BasicInfo
inputValues={inputValues}
setInputValues={setInputValues}
handleNextStep={handleNextStep}
/>
)}
{step === 2 && "lol"}
</main>
</div>
</div>
);
};
export default GetStarted;