From 71838f4ac7842c6bd22a8785adb9496cae794eff Mon Sep 17 00:00:00 2001 From: Keane Chan Date: Tue, 18 Oct 2022 10:12:17 +0800 Subject: [PATCH] [resumes][feat] improve UI for submit box --- apps/portal/src/pages/resumes/submit.tsx | 37 ++++++++++-------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/apps/portal/src/pages/resumes/submit.tsx b/apps/portal/src/pages/resumes/submit.tsx index 613d841c..dc97e95a 100644 --- a/apps/portal/src/pages/resumes/submit.tsx +++ b/apps/portal/src/pages/resumes/submit.tsx @@ -8,7 +8,7 @@ import type { FileRejection } from 'react-dropzone'; import { useDropzone } from 'react-dropzone'; import type { SubmitHandler } from 'react-hook-form'; import { useForm } from 'react-hook-form'; -import { PaperClipIcon } from '@heroicons/react/24/outline'; +import { ArrowUpCircleIcon } from '@heroicons/react/24/outline'; import { Button, CheckboxInput, @@ -303,34 +303,29 @@ export default function SubmitResumeForm({ fileUploadError ? 'border-danger-600' : 'border-gray-300', - 'mt-2 flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6', + 'mt-2 flex cursor-pointer justify-center rounded-md border-2 border-dashed bg-gray-100 px-6 pt-5 pb-6', )}>
-
- {resumeFile == null ? ( - - ) : ( -
-

- {resumeFile.name} -

-
- )} -
+ {resumeFile == null ? ( + + ) : ( +

+ {resumeFile.name} +

+ )}