From 678c325ed93b6cffc86fa766b9c564c8c1d79a54 Mon Sep 17 00:00:00 2001 From: tipusinghaw Date: Thu, 5 Oct 2023 12:13:10 +0530 Subject: [PATCH] refactor: removed skip option while registration Signed-off-by: tipusinghaw --- .../Authentication/SignUpUserName.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/components/Authentication/SignUpUserName.tsx b/src/components/Authentication/SignUpUserName.tsx index dd244cd66..49fde1863 100644 --- a/src/components/Authentication/SignUpUserName.tsx +++ b/src/components/Authentication/SignUpUserName.tsx @@ -52,12 +52,6 @@ const SignUpUserName = () => { setGoingBack(false); }; - const handleSkipClick = () => { - setSkipped(true); - }; - - - return (
{skipped ? ( @@ -130,11 +124,13 @@ const SignUpUserName = () => { validationSchema={yup.object().shape({ firstName: yup .string() + .required('First name is required') .min(2, 'First name must be at least 2 characters') .max(50, 'First name must be at most 255 characters') .trim(), lastName: yup .string() + .required('Last name is required') .min(2, 'Last name must be at least 2 characters') .max(50, 'Last name must be at most 255 characters') .trim() @@ -161,6 +157,7 @@ const SignUpUserName = () => {
{
{ {formikHandlers?.errors?.lastName} }
- -
- - - {`Skip`} - -
-