Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 104295bdb2 | |||
| 44933d4362 |
@@ -15,6 +15,7 @@
|
|||||||
"formik": "2.4.5",
|
"formik": "2.4.5",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
"react-icons": "^5.0.1",
|
||||||
"react-redux": "^8.0.5",
|
"react-redux": "^8.0.5",
|
||||||
"react-router-dom": "6.3.0",
|
"react-router-dom": "6.3.0",
|
||||||
"react-select": "^5.8.0",
|
"react-select": "^5.8.0",
|
||||||
|
|||||||
@@ -31,15 +31,18 @@ export default function DashboardFormInit({handleNextStep}:Props) {
|
|||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="For How Many Months?"
|
label="For How Many Months?"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="12 Months"
|
// selectValue=''
|
||||||
|
selectOptions={duration}
|
||||||
|
// onChange={()=>{}}
|
||||||
/>
|
/>
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Direct sales agent ID ( Optional )"
|
label="Direct sales agent ID ( Optional )"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
labelClass="font-bold text-[1.125rem]"
|
||||||
|
floatLabel='Enter agent ID'
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Agent ID"
|
placeholder="Agent ID"
|
||||||
@@ -54,3 +57,17 @@ export default function DashboardFormInit({handleNextStep}:Props) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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" },
|
||||||
|
];
|
||||||
|
|||||||
@@ -14,15 +14,15 @@ export default function DashboardHomeAttestation({handleNextStep}:Props) {
|
|||||||
<div className="w-full flex justify-center">
|
<div className="w-full flex justify-center">
|
||||||
<Stepper step={4} />
|
<Stepper step={4} />
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-[3.25rem] flex flex-col gap-9">
|
<p className='my-10 text-red-500 text-lg md:text-2xl'>Applicant's Attestation and Debit Instruction</p>
|
||||||
<p className='text-red-500 text-lg md:text-2xl'>Applicant's Attestation and Debit Instruction</p>
|
<p className='text-red-500 text-base'>NB: Must be your FCMB account number</p>
|
||||||
<p className='text-red-500 text-base'>NB: Must be your FCMB account number</p>
|
<div className="flex flex-col gap-9">
|
||||||
<div className="flex items-center gap-[4.125rem]">
|
<div className="flex items-center gap-[4.125rem]">
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Disbursement account number"
|
floatLabel="Disbursement account number"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="0102547896"
|
placeholder="0102547896"
|
||||||
|
|||||||
@@ -17,9 +17,11 @@ export default function DashboardHomeDetail({handleNextStep}:Props) {
|
|||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Select your gender"
|
label="Select your gender"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Male"
|
// selectValue=''
|
||||||
|
selectOptions={gender}
|
||||||
|
// onChange={()=>{}}
|
||||||
/>
|
/>
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
@@ -37,18 +39,22 @@ export default function DashboardHomeDetail({handleNextStep}:Props) {
|
|||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Marital status"
|
label="Marital status"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Single"
|
// selectValue=''
|
||||||
/>{" "}
|
selectOptions={maritalStatus}
|
||||||
|
// onChange={()=>{}}
|
||||||
|
/>
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Select your state"
|
label="Select your state"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Lagos"
|
// selectValue=''
|
||||||
|
selectOptions={state}
|
||||||
|
// onChange={()=>{}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
@@ -70,3 +76,30 @@ export default function DashboardHomeDetail({handleNextStep}:Props) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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" },
|
||||||
|
];
|
||||||
@@ -16,8 +16,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Job Title"
|
floatLabel="Job Title"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Software Engineer"
|
placeholder="Software Engineer"
|
||||||
@@ -25,8 +25,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Employer name"
|
floatLabel="Employer name"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Mr. Mark John"
|
placeholder="Mr. Mark John"
|
||||||
@@ -36,28 +36,32 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Job Sector"
|
floatLabel="Job Sector"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Technology"
|
// selectValue=''
|
||||||
|
selectOptions={jobSection}
|
||||||
|
// onChange={()=>{}}
|
||||||
/>
|
/>
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Sector"
|
floatLabel="Select your industry"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Engineering"
|
// selectValue=''
|
||||||
|
selectOptions={industry}
|
||||||
|
// onChange={()=>{}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-[4.125rem]">
|
<div className="flex items-center gap-[4.125rem]">
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Date of resumption"
|
floatLabel="Date of resumption"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="12/12/2015"
|
placeholder="12/12/2015"
|
||||||
@@ -65,8 +69,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Employers official email"
|
floatLabel="Employers official email"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="example@gmail.com"
|
placeholder="example@gmail.com"
|
||||||
@@ -76,8 +80,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Annual Income"
|
floatLabel="Annual Income"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="1,200,000"
|
placeholder="1,200,000"
|
||||||
@@ -85,8 +89,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Net monthly salary"
|
floatLabel="Net monthly salary"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="100,000"
|
placeholder="100,000"
|
||||||
@@ -96,8 +100,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Salary payment date"
|
floatLabel="Salary payment date"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="30th of every month"
|
placeholder="30th of every month"
|
||||||
@@ -105,8 +109,8 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Employee ID"
|
floatLabel="Employee ID"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="LS/001/005"
|
placeholder="LS/001/005"
|
||||||
@@ -115,11 +119,13 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Highest level of education"
|
floatLabel="Highest level of education"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
select={true}
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
selectClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="B.sc"
|
// selectValue=''
|
||||||
|
selectOptions={qualification}
|
||||||
|
// onChange={()=>{}}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
className="my-8 max-w-[25.875rem] btn-Y text-black w-full h-11"
|
className="my-8 max-w-[25.875rem] btn-Y text-black w-full h-11"
|
||||||
@@ -131,3 +137,26 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
interface Option {
|
||||||
|
value: string;
|
||||||
|
label: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const jobSection: Option[] = [
|
||||||
|
{ value: "", label: "Please Select" },
|
||||||
|
{ value: "private (non academic)", label: "Private (non academic)" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const industry: Option[] = [
|
||||||
|
{ value: "", label: "Please Select" },
|
||||||
|
{ value: "engineering", label: "Engineering" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const qualification: Option[] = [
|
||||||
|
{ value: "", label: "Please Select" },
|
||||||
|
{ value: "b.sc + professional qualification", label: "B.Sc + Professional Qualification" },
|
||||||
|
];
|
||||||
@@ -13,13 +13,14 @@ export default function DashboardHomeRefereeInfo({handleNextStep}:Props) {
|
|||||||
<div className="mt-[3.25rem] flex flex-col gap-9">
|
<div className="mt-[3.25rem] flex flex-col gap-9">
|
||||||
<p className='text-red-500 text-lg md:text-2xl'>Reference Details <span className='text-base'>(Must be 18 years and above)</span></p>
|
<p className='text-red-500 text-lg md:text-2xl'>Reference Details <span className='text-base'>(Must be 18 years and above)</span></p>
|
||||||
<div className="flex items-center gap-[4.125rem]">
|
<div className="flex items-center gap-[4.125rem]">
|
||||||
<div className='max-w-[25.875rem] w-full flex flex-col gap-9'>
|
<div className='w-full max-w-[25.875rem]'>
|
||||||
<p className='text-red-500 text-base'>Reference one</p>
|
<p className='text-red-500 text-base'>Reference one</p>
|
||||||
|
<div className='w-full flex flex-col gap-9'>
|
||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Full name"
|
floatLabel="Full name"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="John James"
|
placeholder="John James"
|
||||||
@@ -27,8 +28,8 @@ export default function DashboardHomeRefereeInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Relationship"
|
floatLabel="Relationship"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="Sister"
|
placeholder="Sister"
|
||||||
@@ -36,8 +37,8 @@ export default function DashboardHomeRefereeInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Phone number"
|
floatLabel="Phone number"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="07000000000"
|
placeholder="07000000000"
|
||||||
@@ -45,8 +46,8 @@ export default function DashboardHomeRefereeInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="Email address"
|
floatLabel="Email address"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="demo@gamil.com"
|
placeholder="demo@gamil.com"
|
||||||
@@ -54,71 +55,65 @@ export default function DashboardHomeRefereeInfo({handleNextStep}:Props) {
|
|||||||
<InputCompOne
|
<InputCompOne
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
name="applyIshInput"
|
name="applyIshInput"
|
||||||
label="BVN"
|
floatLabel="BVN"
|
||||||
labelClass="font-bold text-[1.125rem]"
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
input
|
input
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
placeholder="2228457896"
|
placeholder="2228457896"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='max-w-[25.875rem] w-full flex flex-col gap-9'>
|
|
||||||
<p className='text-red-500 text-base'>Reference one</p>
|
|
||||||
<InputCompOne
|
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
|
||||||
name="applyIshInput"
|
|
||||||
label="Full name"
|
|
||||||
labelClass="font-bold text-[1.125rem]"
|
|
||||||
input
|
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
|
||||||
placeholder="John James"
|
|
||||||
/>
|
|
||||||
<InputCompOne
|
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
|
||||||
name="applyIshInput"
|
|
||||||
label="Relationship"
|
|
||||||
labelClass="font-bold text-[1.125rem]"
|
|
||||||
input
|
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
|
||||||
placeholder="Sister"
|
|
||||||
/>
|
|
||||||
<InputCompOne
|
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
|
||||||
name="applyIshInput"
|
|
||||||
label="Phone number"
|
|
||||||
labelClass="font-bold text-[1.125rem]"
|
|
||||||
input
|
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
|
||||||
placeholder="07000000000"
|
|
||||||
/>
|
|
||||||
<InputCompOne
|
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
|
||||||
name="applyIshInput"
|
|
||||||
label="Email address"
|
|
||||||
labelClass="font-bold text-[1.125rem]"
|
|
||||||
input
|
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
|
||||||
placeholder="demo@gamil.com"
|
|
||||||
/>
|
|
||||||
<InputCompOne
|
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
|
||||||
name="applyIshInput"
|
|
||||||
label="BVN"
|
|
||||||
labelClass="font-bold text-[1.125rem]"
|
|
||||||
input
|
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
|
||||||
placeholder="2228457896"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className='w-full max-w-[25.875rem]'>
|
||||||
|
<p className='text-red-500 text-base'>Reference two</p>
|
||||||
|
<div className='w-full flex flex-col gap-9'>
|
||||||
|
<InputCompOne
|
||||||
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
|
name="applyIshInput"
|
||||||
|
floatLabel="Full name"
|
||||||
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
|
input
|
||||||
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
|
placeholder="John James"
|
||||||
|
/>
|
||||||
|
<InputCompOne
|
||||||
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
|
name="applyIshInput"
|
||||||
|
floatLabel="Relationship"
|
||||||
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
|
input
|
||||||
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
|
placeholder="Sister"
|
||||||
|
/>
|
||||||
|
<InputCompOne
|
||||||
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
|
name="applyIshInput"
|
||||||
|
floatLabel="Phone number"
|
||||||
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
|
input
|
||||||
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
|
placeholder="07000000000"
|
||||||
|
/>
|
||||||
|
<InputCompOne
|
||||||
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
|
name="applyIshInput"
|
||||||
|
floatLabel="Email address"
|
||||||
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
|
input
|
||||||
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
|
placeholder="demo@gamil.com"
|
||||||
|
/>
|
||||||
|
<InputCompOne
|
||||||
|
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
||||||
|
name="applyIshInput"
|
||||||
|
floatLabel="BVN"
|
||||||
|
// labelClass="font-bold text-[1.125rem]"
|
||||||
|
input
|
||||||
|
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
||||||
|
placeholder="2228457896"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<InputCompOne
|
|
||||||
parentClass="max-w-[25.875rem] w-full flex flex-col gap-4"
|
|
||||||
name="applyIshInput"
|
|
||||||
label="Highest level of education"
|
|
||||||
labelClass="font-bold text-[1.125rem]"
|
|
||||||
input
|
|
||||||
inputClass="w-full h-[3.625rem] bg-[#EFEFEF] px-4 rounded-[.375rem]"
|
|
||||||
placeholder="B.sc"
|
|
||||||
/>
|
|
||||||
<Button
|
<Button
|
||||||
className="my-8 max-w-[25.875rem] btn-Y text-black w-full h-11"
|
className="my-8 max-w-[25.875rem] btn-Y text-black w-full h-11"
|
||||||
text="Next"
|
text="Next"
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
|
import { FaCaretDown } from "react-icons/fa";
|
||||||
|
|
||||||
import dashIcon from "../../assets/images/dashboard/dashDefault.svg";
|
import dashIcon from "../../assets/images/dashboard/dashDefault.svg";
|
||||||
type Props = {
|
type Props = {
|
||||||
name: string;
|
name: string;
|
||||||
fillColor?: string;
|
fillColor?: string;
|
||||||
|
className?:string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Icons({ name, fillColor }: Props) {
|
export default function Icons({ name, fillColor, className }: Props) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{name == "home" ? (
|
{name == "home" ? (
|
||||||
@@ -106,7 +109,9 @@ export default function Icons({ name, fillColor }: Props) {
|
|||||||
fill={fillColor ? fillColor : "#FFF"}
|
fill={fillColor ? fillColor : "#FFF"}
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
) : name == "dash-icon" ? (
|
) :name == 'arrow-down'?
|
||||||
|
<FaCaretDown className={`text-xl ${className && className}`} />
|
||||||
|
:name == "dash-icon" ? (
|
||||||
<img src={dashIcon} alt="dash-icon" />
|
<img src={dashIcon} alt="dash-icon" />
|
||||||
) : null}
|
) : null}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import React, { forwardRef } from "react";
|
import React, { forwardRef } from "react";
|
||||||
|
import { Icons } from "../Icons";
|
||||||
|
|
||||||
export interface InputCompOneProps {
|
export interface InputCompOneProps {
|
||||||
label: string;
|
label?: string;
|
||||||
labelClass: string;
|
labelClass?: string;
|
||||||
labelSpan?: string;
|
labelSpan?: string;
|
||||||
labelSpanClass?: string;
|
labelSpanClass?: string;
|
||||||
|
floatLabel?: string;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
value?: string;
|
value?: string;
|
||||||
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
||||||
@@ -20,7 +22,6 @@ export interface InputCompOneProps {
|
|||||||
inputClass?: string;
|
inputClass?: string;
|
||||||
parentInputClass?: string;
|
parentInputClass?: string;
|
||||||
selectClass?: string;
|
selectClass?: string;
|
||||||
parentSelectClass?: string;
|
|
||||||
parentClass?: string;
|
parentClass?: string;
|
||||||
maxLength?: number;
|
maxLength?: number;
|
||||||
error?: string;
|
error?: string;
|
||||||
@@ -33,6 +34,7 @@ const InputCompOne = forwardRef<HTMLInputElement, InputCompOneProps>(
|
|||||||
labelClass,
|
labelClass,
|
||||||
labelSpan,
|
labelSpan,
|
||||||
labelSpanClass,
|
labelSpanClass,
|
||||||
|
floatLabel,
|
||||||
placeholder,
|
placeholder,
|
||||||
value,
|
value,
|
||||||
onChange,
|
onChange,
|
||||||
@@ -47,7 +49,6 @@ const InputCompOne = forwardRef<HTMLInputElement, InputCompOneProps>(
|
|||||||
inputClass,
|
inputClass,
|
||||||
parentInputClass,
|
parentInputClass,
|
||||||
selectClass,
|
selectClass,
|
||||||
parentSelectClass,
|
|
||||||
parentClass,
|
parentClass,
|
||||||
maxLength,
|
maxLength,
|
||||||
error,
|
error,
|
||||||
@@ -57,14 +58,14 @@ const InputCompOne = forwardRef<HTMLInputElement, InputCompOneProps>(
|
|||||||
return (
|
return (
|
||||||
<div className={parentClass}>
|
<div className={parentClass}>
|
||||||
{label && (
|
{label && (
|
||||||
<label htmlFor="" className={labelClass}>
|
<label htmlFor={label ? label : floatLabel} className={labelClass}>
|
||||||
{label}
|
{label}
|
||||||
{labelSpan && <span className={labelSpanClass}>{labelSpan}</span>}
|
{labelSpan && <span className={labelSpanClass}>{labelSpan}</span>}
|
||||||
{error && <span className='text-[10px] text-red-500'>{error}</span>}
|
{error && <span className='text-[10px] text-red-500'>{error}</span>}
|
||||||
</label>
|
</label>
|
||||||
)}
|
)}
|
||||||
{input && (
|
{input && (
|
||||||
<div className={parentInputClass}>
|
<div className={`relative ${parentInputClass}`}>
|
||||||
<input
|
<input
|
||||||
type={inputType}
|
type={inputType}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
@@ -74,18 +75,26 @@ const InputCompOne = forwardRef<HTMLInputElement, InputCompOneProps>(
|
|||||||
name={name}
|
name={name}
|
||||||
tabIndex={tabIndex}
|
tabIndex={tabIndex}
|
||||||
ref={forwardedRef}
|
ref={forwardedRef}
|
||||||
className={inputClass}
|
className={`px-4 ${floatLabel && 'peer pt-4 placeholder:text-transparent'} ${inputClass}`}
|
||||||
maxLength={maxLength}
|
maxLength={maxLength}
|
||||||
|
id={label ? label : floatLabel}
|
||||||
/>
|
/>
|
||||||
|
{floatLabel &&
|
||||||
|
<label
|
||||||
|
htmlFor={label ? label : floatLabel}
|
||||||
|
className={`cursor-pointer text-sm text-black/70 dark:text-white absolute left-4 top-0 translate-y-0 peer-focus:top-0 peer-focus:translate-y-0 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 transition-all duration-500`}
|
||||||
|
>{floatLabel}</label>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{select && (
|
{select && (
|
||||||
<div className={parentSelectClass}>
|
<div className={`relative ${parentInputClass}`}>
|
||||||
<select
|
<select
|
||||||
name={name}
|
name={name}
|
||||||
id=""
|
id={label ? label : floatLabel}
|
||||||
value={selectValue}
|
value={selectValue}
|
||||||
className={selectClass}
|
className={`px-4 appearance-none ${floatLabel && 'peer pt-4'} ${selectClass}`}
|
||||||
|
// onChange={onChange}
|
||||||
>
|
>
|
||||||
{selectOptions.map(({ value, label }) => (
|
{selectOptions.map(({ value, label }) => (
|
||||||
<option key={value} value={value}>
|
<option key={value} value={value}>
|
||||||
@@ -93,6 +102,16 @@ const InputCompOne = forwardRef<HTMLInputElement, InputCompOneProps>(
|
|||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
|
{floatLabel &&
|
||||||
|
<label
|
||||||
|
htmlFor={label ? label : floatLabel}
|
||||||
|
className={`cursor-pointer text-sm text-black/70 dark:text-white absolute left-4 top-0 translate-y-0 peer-focus:top-0 peer-focus:translate-y-0 transition-all duration-500`}
|
||||||
|
>{floatLabel}</label>
|
||||||
|
}
|
||||||
|
{/* select custon arrow */}
|
||||||
|
<div className='absolute right-4 top-1/2 -translate-y-1/2'>
|
||||||
|
<Icons name='arrow-down' />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user