Added You're almost done page
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user