Added You're almost done page

This commit is contained in:
Ebube
2024-03-22 18:16:18 +01:00
parent e1bd0293f1
commit 08af493d65
2 changed files with 15 additions and 3 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import React from "react";
import BasicInfo from "./BasicInfo";
import YourAreAlmostThere from "./YourAreAlmostThere";
import LoanAmountComp from "./LoanAmountComp";
const GetStarted = () => {
const [step, setStep] = React.useState(1);
@@ -39,7 +40,8 @@ const GetStarted = () => {
handleNextStep={handleNextStep}
/>
)}
{step === 2 && <YourAreAlmostThere />}
{step === 2 && <YourAreAlmostThere handleNextStep={handleNextStep} />}
{step === 3 && <LoanAmountComp />}
</main>
</div>
</div>
@@ -1,9 +1,19 @@
import React from "react";
import { useNavigate } from "react-router-dom";
import EmploymentDetails from "./EmploymentDetails";
import ReferenceDetails from "./ReferenceDetails";
import { Button } from "..";
const YourAreAlmostThere: React.FC = () => {
interface YourAreAlmostThereProps {
handleNextStep: any;
}
const YourAreAlmostThere: React.FC = ({ handleNextStep }) => {
const navigate = useNavigate();
const navigation = () => {
navigate("");
};
return (
<>
<h1 className="font-semibold text-[2.375rem] text-[#5C2684] my-[.5rem]">
@@ -16,7 +26,7 @@ const YourAreAlmostThere: React.FC = () => {
className="my-8 max-w-[20.3125rem] btn-R bg-[#5A2C82]"
text="Continue"
type="button"
// onClick={handleNextStep}
onClick={handleNextStep}
/>
</form>
</>