|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
|
import React, {useState} from "react";
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { useSelector } from "react-redux";
|
|
|
|
|
import { useLocation } from "react-router-dom";
|
|
|
|
|
|
|
|
|
@@ -51,13 +51,15 @@ const validationSchema = Yup.object().shape({
|
|
|
|
|
.oneOf([true], "You must accept that the information here is correct"),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
requestStatus: RequestStatus
|
|
|
|
|
setRequestStatus: (value:RequestStatus)=>void
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const EmployerValidation: React.FC= () => {
|
|
|
|
|
const EmployerValidation: React.FC= ({requestStatus, setRequestStatus}:Props) => {
|
|
|
|
|
|
|
|
|
|
const { userDetails } = useSelector((state:StoreState) => state.userDetails);
|
|
|
|
|
|
|
|
|
|
const [requestStatus, setRequestStatus] = useState<RequestStatus>({loading:false, status:null, message:'', data:{}})
|
|
|
|
|
|
|
|
|
|
const { state:{application_uid, verify_uid} } = useLocation();
|
|
|
|
|
|
|
|
|
|
const initialValuesNew = {...initialValues, application_uid, verify_uid}
|
|
|
|
@@ -87,199 +89,191 @@ const EmployerValidation: React.FC= () => {
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{requestStatus.status ?
|
|
|
|
|
<p className="text-xl mb-4 text-center font-medium text-red-500 dark:text-black">
|
|
|
|
|
Thank you for completing the process, we will continue further processing with the information provided
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
|
<>
|
|
|
|
|
{/* Header */}
|
|
|
|
|
<div className="w-full mb-10">
|
|
|
|
|
<h1 className="font-semibold text-lg md:text-xl text-[#5C2684]">
|
|
|
|
|
EMPLOYER'S COMMITMENT AND VALIDATION
|
|
|
|
|
</h1>
|
|
|
|
|
<p className="text-[10px]">(This is to be filled and validated by the employer of the applicant)</p>
|
|
|
|
|
</div>
|
|
|
|
|
<Formik
|
|
|
|
|
initialValues={initialValuesNew}
|
|
|
|
|
validationSchema={validationSchema}
|
|
|
|
|
onSubmit={handleSubmit}
|
|
|
|
|
>
|
|
|
|
|
{(props)=>(
|
|
|
|
|
<Form>
|
|
|
|
|
<div className="w-full">
|
|
|
|
|
<p className="my-10 tracking-wide leading-relaxed">We hereby confirm that <span className="font-bold">Mr {userDetails.firstname} {userDetails.lastname} (The Applicant)</span> who applied for our loan facility is a permanent and confirmed (Non-contract) staff of <span className="font-bold">{userDetails.employer_name}</span> and that he is actively on the company's payroll
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-10 tracking-wide leading-relaxed">We hereby irrevocably and unconditionally undertake to domicile his/her salaries to First City Monument Bank Ltd (FCMB) Accounts number.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="w-full my-10">
|
|
|
|
|
<div className="w-full flex items-center gap-8">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full max-w-[25rem]"
|
|
|
|
|
name="salary_acct"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value='0011223344'
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
disabled={true}
|
|
|
|
|
// error={(props.errors.first_name && props.touched.first_name) ? props.errors.first_name : ''}
|
|
|
|
|
/>
|
|
|
|
|
<input
|
|
|
|
|
type='checkbox'
|
|
|
|
|
name="confirm_salary_acct"
|
|
|
|
|
className='w-6 h-6 p-2 accent-purple-600 text-purple-600 bg-gray-100 border-gray-300 rounded-lg focus:ring-purple-500'
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
{(props.errors.confirm_salary_acct && props.touched.confirm_salary_acct) && <span className='text-[10px] text-red-500'>{props.errors.confirm_salary_acct}</span> }
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="my-10">
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">We further undertake that we shall not change the domiciliation of the applicant's account from FCMB throughout the tenor of the loan and any extension thereof unless with your written consent stating that the applicant is no longer indebted to the Bank.
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">We agree to notigy you within 14 days in the event of transfer of the applicant from his/her present location, any change in the employment status or disengagement from the service of our organization or death of the applicant and shall pay his/her benefits, if applicable (excluding Pension Contribution) to the designated FCMB Account number above or issue a cheque or bank draft in favour of We further consent to any additional salary plus facility enhancement that may be obtained by the Beneficiary from your Bank subject to the Bank carrying out a due diligence as to the status of the Beneficiary's employment with our company prior to the approval of the facility Our commitment/consent and undertaking as stated above extends to cover additinal facilities of any kind that may be obtained from your Bank by any of the above mentioned Beneficiary(ies).
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">This Undertaking is given in good faith and shall remain irrevocable except with the written consent of the Bank.
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">Thank you.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-20 mb-10 w-full rounded py-3 bg-[#5C2684] px-5">
|
|
|
|
|
<p className="text-base text-[#FBB700] tracking-[3%] font-extrabold w-fit uppercase">
|
|
|
|
|
Employers Validation
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="my-10 flex flex-col md:flex-row gap-4 md:gap-10 md:items-end">
|
|
|
|
|
{/* Header */}
|
|
|
|
|
<div className="w-full mb-10">
|
|
|
|
|
<h1 className="font-semibold text-lg md:text-xl text-[#5C2684]">
|
|
|
|
|
EMPLOYER'S COMMITMENT AND VALIDATION
|
|
|
|
|
</h1>
|
|
|
|
|
<p className="text-[10px]">(This is to be filled and validated by the employer of the applicant)</p>
|
|
|
|
|
</div>
|
|
|
|
|
<Formik
|
|
|
|
|
initialValues={initialValuesNew}
|
|
|
|
|
validationSchema={validationSchema}
|
|
|
|
|
onSubmit={handleSubmit}
|
|
|
|
|
>
|
|
|
|
|
{(props)=>(
|
|
|
|
|
<Form>
|
|
|
|
|
<div className="w-full">
|
|
|
|
|
<p className="my-10 tracking-wide leading-relaxed">We hereby confirm that <span className="font-bold">Mr {userDetails.firstname} {userDetails.lastname} (The Applicant)</span> who applied for our loan facility is a permanent and confirmed (Non-contract) staff of <span className="font-bold">{userDetails.employer_name}</span> and that he is actively on the company's payroll
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-10 tracking-wide leading-relaxed">We hereby irrevocably and unconditionally undertake to domicile his/her salaries to {import.meta.env.VITE_BANK_NAME} Ltd ({import.meta.env.VITE_BANK_NAME_SHORT}) Accounts number.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="w-full my-10">
|
|
|
|
|
<div className="w-full flex items-center gap-8">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full max-w-[25rem]"
|
|
|
|
|
name="salary_acct"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
name="education"
|
|
|
|
|
label="Applicant's Educational Qualification"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelSpan={`(Please select the emplyee's highest qualification)`}
|
|
|
|
|
labelSpanClass='text-[10px]'
|
|
|
|
|
select={true}
|
|
|
|
|
selectClass="w-full h-[36px] rounded-[6px]"
|
|
|
|
|
selectOptions={titleOptions}
|
|
|
|
|
selectValue={props.values.education}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.education && props.touched.education) ? props.errors.education : ''}
|
|
|
|
|
/>
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Applicant's Date of Employment"
|
|
|
|
|
name="applicant_date"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputType='date'
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem] px-3"
|
|
|
|
|
value={props.values.applicant_date}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.applicant_date && props.touched.applicant_date) ? props.errors.applicant_date : ''}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="my-10 flex flex-col md:flex-row gap-4 md:gap-10 md:items-end">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Applicant's Grade Level"
|
|
|
|
|
name="grade"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelClass="font-bold text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.grade}
|
|
|
|
|
value='0011223344'
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.grade && props.touched.grade) ? props.errors.grade : ''}
|
|
|
|
|
disabled={true}
|
|
|
|
|
// error={(props.errors.first_name && props.touched.first_name) ? props.errors.first_name : ''}
|
|
|
|
|
/>
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Applicant's IPPIS Number (optional)"
|
|
|
|
|
name="ippis_number"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.ippis_number}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.ippis_number && props.touched.ippis_number) ? props.errors.ippis_number : ''}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className='w-full max-w-[45rem]'>
|
|
|
|
|
<div className='flex gap-4 items-start'>
|
|
|
|
|
<input
|
|
|
|
|
<input
|
|
|
|
|
type='checkbox'
|
|
|
|
|
name="checked"
|
|
|
|
|
className='w-6 h-6 p-2 accent-purple-600 text-purple-600 bg-gray-100 border-gray-300 rounded focus:ring-purple-500'
|
|
|
|
|
name="confirm_salary_acct"
|
|
|
|
|
className='w-6 h-6 p-2 accent-purple-600 text-purple-600 bg-gray-100 border-gray-300 rounded-lg focus:ring-purple-500'
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
/>
|
|
|
|
|
<p className='text-sm text-justify'>We hereby accept that all the information provided about the applicant (your employee) is true and correct to the best of our knowledge
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{props.errors.checked && props.touched.checked && <span className='text-[10px] text-red-500'>{props.errors.checked}</span>}
|
|
|
|
|
</div>
|
|
|
|
|
{(props.errors.confirm_salary_acct && props.touched.confirm_salary_acct) && <span className='text-[10px] text-red-500'>{props.errors.confirm_salary_acct}</span> }
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="my-10 flex flex-col md:flex-row gap-4 md:gap-10 md:items-end">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Employer's Name"
|
|
|
|
|
name="employers_name"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelSpan={`(your full name)`}
|
|
|
|
|
labelSpanClass='text-[10px]'
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.employers_name}
|
|
|
|
|
<div className="my-10">
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">We further undertake that we shall not change the domiciliation of the applicant's account from {import.meta.env.VITE_BANK_NAME_SHORT} throughout the tenor of the loan and any extension thereof unless with your written consent stating that the applicant is no longer indebted to the Bank.
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">We agree to notigy you within 14 days in the event of transfer of the applicant from his/her present location, any change in the employment status or disengagement from the service of our organization or death of the applicant and shall pay his/her benefits, if applicable (excluding Pension Contribution) to the designated {import.meta.env.VITE_BANK_NAME_SHORT} Account number above or issue a cheque or bank draft in favour of We further consent to any additional salary plus facility enhancement that may be obtained by the Beneficiary from your Bank subject to the Bank carrying out a due diligence as to the status of the Beneficiary's employment with our company prior to the approval of the facility Our commitment/consent and undertaking as stated above extends to cover additinal facilities of any kind that may be obtained from your Bank by any of the above mentioned Beneficiary(ies).
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">This Undertaking is given in good faith and shall remain irrevocable except with the written consent of the Bank.
|
|
|
|
|
</p>
|
|
|
|
|
<p className="my-2 tracking-wide leading-relaxed">Thank you.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-20 mb-10 w-full rounded py-3 bg-[#5C2684] px-5">
|
|
|
|
|
<p className="text-base text-[#FBB700] tracking-[3%] font-extrabold w-fit uppercase">
|
|
|
|
|
Employers Validation
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="my-10 flex flex-col md:flex-row gap-4 md:gap-10 md:items-end">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
name="education"
|
|
|
|
|
label="Applicant's Educational Qualification"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelSpan={`(Please select the emplyee's highest qualification)`}
|
|
|
|
|
labelSpanClass='text-[10px]'
|
|
|
|
|
select={true}
|
|
|
|
|
selectClass="w-full h-[36px] rounded-[6px]"
|
|
|
|
|
selectOptions={titleOptions}
|
|
|
|
|
selectValue={props.values.education}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.education && props.touched.education) ? props.errors.education : ''}
|
|
|
|
|
/>
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Applicant's Date of Employment"
|
|
|
|
|
name="applicant_date"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputType='date'
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem] px-3"
|
|
|
|
|
value={props.values.applicant_date}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.applicant_date && props.touched.applicant_date) ? props.errors.applicant_date : ''}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="my-10 flex flex-col md:flex-row gap-4 md:gap-10 md:items-end">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Applicant's Grade Level"
|
|
|
|
|
name="grade"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.grade}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.grade && props.touched.grade) ? props.errors.grade : ''}
|
|
|
|
|
/>
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Applicant's IPPIS Number (optional)"
|
|
|
|
|
name="ippis_number"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.ippis_number}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.ippis_number && props.touched.ippis_number) ? props.errors.ippis_number : ''}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className='w-full max-w-[45rem]'>
|
|
|
|
|
<div className='flex gap-4 items-start'>
|
|
|
|
|
<input
|
|
|
|
|
type='checkbox'
|
|
|
|
|
name="checked"
|
|
|
|
|
className='w-6 h-6 p-2 accent-purple-600 text-purple-600 bg-gray-100 border-gray-300 rounded focus:ring-purple-500'
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.employers_name && props.touched.employers_name) ? props.errors.employers_name : ''}
|
|
|
|
|
/>
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Designation"
|
|
|
|
|
name="designation"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelSpan={`(your position)`}
|
|
|
|
|
labelSpanClass='text-[10px]'
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.designation}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.designation && props.touched.designation) ? props.errors.designation : ''}
|
|
|
|
|
/>
|
|
|
|
|
<p className='text-sm text-justify'>We hereby accept that all the information provided about the applicant (your employee) is true and correct to the best of our knowledge
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{props.errors.checked && props.touched.checked && <span className='text-[10px] text-red-500'>{props.errors.checked}</span>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="my-10 flex flex-col md:flex-row gap-4 md:gap-10 md:items-end">
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Employer's Name"
|
|
|
|
|
name="employers_name"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelSpan={`(your full name)`}
|
|
|
|
|
labelSpanClass='text-[10px]'
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.employers_name}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.employers_name && props.touched.employers_name) ? props.errors.employers_name : ''}
|
|
|
|
|
/>
|
|
|
|
|
<InputCompOne
|
|
|
|
|
parentClass="w-full md:max-w-[25rem]"
|
|
|
|
|
label="Designation"
|
|
|
|
|
name="designation"
|
|
|
|
|
parentInputClass="w-full"
|
|
|
|
|
labelClass="font-bold text-base md:text-[1.125rem] leading-[1.3613rem] tracking-[2%] text-[#5C2684] mb-[.125rem]"
|
|
|
|
|
labelSpan={`(your position)`}
|
|
|
|
|
labelSpanClass='text-[10px]'
|
|
|
|
|
input
|
|
|
|
|
inputClass="w-full h-[2.25rem] bg-[#EFEFEF] rounded-[.375rem]"
|
|
|
|
|
value={props.values.designation}
|
|
|
|
|
onChange={props.handleChange}
|
|
|
|
|
error={(props.errors.designation && props.touched.designation) ? props.errors.designation : ''}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* submit button */}
|
|
|
|
|
<div className="mt-24 flex items-center gap-2">
|
|
|
|
|
<Button
|
|
|
|
|
className="btn-R bg-[#5A2C82]"
|
|
|
|
|
text="Submit"
|
|
|
|
|
type="submit"
|
|
|
|
|
/>
|
|
|
|
|
{requestStatus.loading &&
|
|
|
|
|
<CustomSpinner />
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div className='w-full'>
|
|
|
|
|
<ErrorMsg
|
|
|
|
|
message={requestStatus.message}
|
|
|
|
|
status={requestStatus.status}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</Form>
|
|
|
|
|
)}
|
|
|
|
|
</Formik>
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
{/* submit button */}
|
|
|
|
|
<div className="mt-24 flex items-center gap-2">
|
|
|
|
|
<Button
|
|
|
|
|
className="btn-R bg-[#5A2C82]"
|
|
|
|
|
text="Submit"
|
|
|
|
|
type="submit"
|
|
|
|
|
/>
|
|
|
|
|
{requestStatus.loading &&
|
|
|
|
|
<CustomSpinner />
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<div className='w-full'>
|
|
|
|
|
<ErrorMsg
|
|
|
|
|
message={requestStatus.message}
|
|
|
|
|
status={requestStatus.status}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</Form>
|
|
|
|
|
)}
|
|
|
|
|
</Formik>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|