diff --git a/apps/portal/src/components/resumes/submit-form/SubmissionGuidelines.tsx b/apps/portal/src/components/resumes/submit-form/SubmissionGuidelines.tsx index 9220adb7..96249537 100644 --- a/apps/portal/src/components/resumes/submit-form/SubmissionGuidelines.tsx +++ b/apps/portal/src/components/resumes/submit-form/SubmissionGuidelines.tsx @@ -1,22 +1,21 @@ export default function SubmissionGuidelines() { return ( -
- Before you submit, please review and acknolwedge our + Before you submit, please review and acknowledge our submission guidelines stated below.
• - Ensure that you do not divulge any of your - personal particulars. + Ensure that you do not divulge any of your{' '} + personal particulars.
• - Ensure that you do not divulge any + Ensure that you do not divulge any{' '} - {' '} company's proprietary and confidential information . diff --git a/apps/portal/src/pages/resumes/submit.tsx b/apps/portal/src/pages/resumes/submit.tsx index 2a04ca4e..06915a00 100644 --- a/apps/portal/src/pages/resumes/submit.tsx +++ b/apps/portal/src/pages/resumes/submit.tsx @@ -46,6 +46,8 @@ type IFormInput = { title: string; }; +type InputKeys = keyof IFormInput; + type InitFormDetails = { additionalInfo?: string; experience: string; @@ -218,6 +220,10 @@ export default function SubmitResumeForm({ } }, [errors?.file, invalidFileUploadError]); + const onValueChange = (section: InputKeys, value: string) => { + setValue(section, value.trim(), { shouldTouch: false }); + }; + return ( <>
@@ -269,7 +275,7 @@ export default function SubmitResumeForm({ required={true} onChange={(val) => setValue('title', val)} /> -Upload resume (PDF format)
-- {resumeFile.name} -
- )} -- PDF up to {FILE_SIZE_LIMIT_MB}MB +
+ {resumeFile.name}
+ )} ++ PDF up to {FILE_SIZE_LIMIT_MB}MB +
{fileUploadError}
- )}{fileUploadError}
+ )} +