From b3efba09d6cec34afe3a528d00f56de3a75fe7a5 Mon Sep 17 00:00:00 2001 From: chukwumdiebube ojinta Date: Fri, 22 Mar 2024 22:35:11 +0100 Subject: [PATCH] fixed build and added updates to loan amount component --- .../GetStarted/EmploymentDetails.tsx | 2 +- src/components/GetStarted/GetStarted.tsx | 2 +- src/components/GetStarted/LoanAmountComp.tsx | 45 ++++++++++++++++--- .../GetStarted/YourAreAlmostThere.tsx | 9 +--- src/components/shared/InputCompOne.tsx | 2 +- 5 files changed, 44 insertions(+), 16 deletions(-) diff --git a/src/components/GetStarted/EmploymentDetails.tsx b/src/components/GetStarted/EmploymentDetails.tsx index 362174f..fa97568 100644 --- a/src/components/GetStarted/EmploymentDetails.tsx +++ b/src/components/GetStarted/EmploymentDetails.tsx @@ -1,7 +1,7 @@ import React from "react"; import { InputCompOne } from ".."; -const EmploymentDetails: React = () => { +const EmploymentDetails: React.FC = () => { return ( <>
diff --git a/src/components/GetStarted/GetStarted.tsx b/src/components/GetStarted/GetStarted.tsx index 93d248f..782366d 100644 --- a/src/components/GetStarted/GetStarted.tsx +++ b/src/components/GetStarted/GetStarted.tsx @@ -6,7 +6,7 @@ import LoanAmountComp from "./LoanAmountComp"; const GetStarted = () => { const [step, setStep] = React.useState(1); - const handleNextStep: any = () => { + const handleNextStep = () => { setStep(step + 1); }; diff --git a/src/components/GetStarted/LoanAmountComp.tsx b/src/components/GetStarted/LoanAmountComp.tsx index a283dbb..7294194 100644 --- a/src/components/GetStarted/LoanAmountComp.tsx +++ b/src/components/GetStarted/LoanAmountComp.tsx @@ -1,10 +1,10 @@ import React from "react"; import { InputCompOne } from ".."; -const LoanAmountComp = () => { +const LoanAmountComp: React.FC = () => { return ( <> -
+

Loan Amount

@@ -20,19 +20,52 @@ const LoanAmountComp = () => {

-
+
-
+
+

+ The maximum amount you can apply for on this offer is based on the + information you shared with us in your loan application. We have + made this offer to suit your monthly remuneration and to enable you + pay your loan on-time +

+ +
+
+ Minimum Offer: +

+ N100,000 +

+
+ +
+ Maximum Offer: +

+ N500,000 +

+
+
+ +
); diff --git a/src/components/GetStarted/YourAreAlmostThere.tsx b/src/components/GetStarted/YourAreAlmostThere.tsx index ad540e9..8836800 100644 --- a/src/components/GetStarted/YourAreAlmostThere.tsx +++ b/src/components/GetStarted/YourAreAlmostThere.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { useNavigate } from "react-router-dom"; +// import { useNavigate } from "react-router-dom"; import EmploymentDetails from "./EmploymentDetails"; import ReferenceDetails from "./ReferenceDetails"; import { Button } from ".."; @@ -8,12 +8,7 @@ interface YourAreAlmostThereProps { handleNextStep: any; } -const YourAreAlmostThere: React.FC = ({ handleNextStep }) => { - const navigate = useNavigate(); - - const navigation = () => { - navigate(""); - }; +const YourAreAlmostThere: React.FC = ({ handleNextStep }) => { return ( <>

diff --git a/src/components/shared/InputCompOne.tsx b/src/components/shared/InputCompOne.tsx index ae8cfbf..c3e9d57 100644 --- a/src/components/shared/InputCompOne.tsx +++ b/src/components/shared/InputCompOne.tsx @@ -6,7 +6,7 @@ export interface InputCompOneProps { labelSpan?: string; labelSpanClass?: string; placeholder?: string; - value: string; + value?: string; onChange?: (e: React.ChangeEvent) => void; onInput?: (e: React.FormEvent) => void; name: string; -- 2.34.1