From 7d6cf57432c0e8d763f2b58856cb6fe26fe392a5 Mon Sep 17 00:00:00 2001 From: James Wyndham Date: Wed, 21 Feb 2024 17:23:53 +0800 Subject: [PATCH] bugfix - fixed UI for the signup modal --- Frontend/constants/index.ts | 7 + Frontend/sections/ModalSignIn/ModalSignIn.tsx | 5 - Frontend/sections/ModalSignUp/ModalSignUp.tsx | 167 +++++++++++++++--- 3 files changed, 150 insertions(+), 29 deletions(-) create mode 100644 Frontend/constants/index.ts diff --git a/Frontend/constants/index.ts b/Frontend/constants/index.ts new file mode 100644 index 0000000..009fddf --- /dev/null +++ b/Frontend/constants/index.ts @@ -0,0 +1,7 @@ +export const companySizeList = [ + "1-10 employees", + "10-30 employees", + "30-70 employees", + "70-100 employees", + "100+ employees" +] \ No newline at end of file diff --git a/Frontend/sections/ModalSignIn/ModalSignIn.tsx b/Frontend/sections/ModalSignIn/ModalSignIn.tsx index 11e5d47..1c05629 100644 --- a/Frontend/sections/ModalSignIn/ModalSignIn.tsx +++ b/Frontend/sections/ModalSignIn/ModalSignIn.tsx @@ -36,11 +36,6 @@ function ModalSignIn() {

Lets kick some more ass?

- {/* */}
{})} className="w-full md:w-2/3">
(null); - const handleCloseModal = () => { - if (formRef.current) { - formRef.current.resetForm(); - } - }; - + const { + register, + handleSubmit, + formState: { errors }, + } = useForm({ + resolver: yupResolver(signUpValidationSchema), + }); return ( <>