From 104295bdb2422a0c341065fe0d7dea598795045c Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 22 Apr 2024 22:38:35 +0100 Subject: [PATCH] select input added where necessary --- package.json | 1 + .../Dashboard/DashboardFormInit.tsx | 23 ++- .../home/DashboardHomeAttestation.tsx | 10 +- .../Dashboard/home/DashboardHomeDetail.tsx | 53 +++++-- .../home/DashboardHomeEmploymentInfo.tsx | 91 +++++++----- .../home/DashboardHomeRefereeInfo.tsx | 131 +++++++++--------- src/components/Icons/Icons.tsx | 9 +- src/components/shared/InputCompOne.tsx | 39 ++++-- 8 files changed, 228 insertions(+), 129 deletions(-) diff --git a/package.json b/package.json index 18e5d7c..2e2862e 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "formik": "2.4.5", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-icons": "^5.0.1", "react-redux": "^8.0.5", "react-router-dom": "6.3.0", "react-select": "^5.8.0", diff --git a/src/components/Dashboard/DashboardFormInit.tsx b/src/components/Dashboard/DashboardFormInit.tsx index e3e4a7d..7595be4 100644 --- a/src/components/Dashboard/DashboardFormInit.tsx +++ b/src/components/Dashboard/DashboardFormInit.tsx @@ -31,15 +31,18 @@ export default function DashboardFormInit({handleNextStep}:Props) { name="applyIshInput" label="For How Many Months?" labelClass="font-bold text-[1.125rem]" - input - inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]" - placeholder="12 Months" + select={true} + selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]" + // selectValue='' + selectOptions={duration} + // onChange={()=>{}} /> ); } + +interface Option { + value: string; + label: string; +} + + +const duration: Option[] = [ + { value: "", label: "Please Select" }, + { value: "6", label: "6 Months" }, + { value: "12", label: "12 Months" }, + { value: "18", label: "18 Months" }, + { value: "24", label: "24 Months" }, +]; diff --git a/src/components/Dashboard/home/DashboardHomeAttestation.tsx b/src/components/Dashboard/home/DashboardHomeAttestation.tsx index db123dc..8217680 100644 --- a/src/components/Dashboard/home/DashboardHomeAttestation.tsx +++ b/src/components/Dashboard/home/DashboardHomeAttestation.tsx @@ -14,15 +14,15 @@ export default function DashboardHomeAttestation({handleNextStep}:Props) {
-
-

Applicant's Attestation and Debit Instruction

-

NB: Must be your FCMB account number

+

Applicant's Attestation and Debit Instruction

+

NB: Must be your FCMB account number

+
{}} /> {" "} + select={true} + selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]" + // selectValue='' + selectOptions={maritalStatus} + // onChange={()=>{}} + /> {}} />
); } + +interface Option { + value: string; + label: string; +} + + +const gender: Option[] = [ + { value: "", label: "Please Select" }, + { value: "male", label: "Male" }, + { value: "female", label: "Female" }, + { value: "others", label: "Prefer not to say" }, +]; + +const maritalStatus: Option[] = [ + { value: "", label: "Please Select" }, + { value: "single", label: "Single" }, + { value: "married", label: "Married" }, + { value: "divorced", label: "Divorced" }, +]; + +const state: Option[] = [ + { value: "", label: "Please Select" }, + { value: "abia", label: "Abia" }, + { value: "imo", label: "Imo" }, + { value: "lagos", label: "Lagos" }, +]; \ No newline at end of file diff --git a/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx b/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx index 89e3eb4..c84d97b 100644 --- a/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx +++ b/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx @@ -16,8 +16,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) { {}} /> {}} />
{}} />