8000 Non mandatory last name for add contacts by Shruti-Apte · Pull Request #1839 · saeloun/miru-web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Non mandatory last name for add contacts #1839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const contactSchema = Yup.object().shape({
.required("First Name cannot be blank"),
lastName: Yup.string()
.matches(/^[a-zA-Z]+$/, "Last Name must contain only letters")
.max(20, "Maximum 20 characters are allowed")
.required("Last Name cannot be blank"),
.max(20, "Maximum 20 characters are allowed"),
email: Yup.string()
.email("Invalid email ID")
.required("Email ID cannot be blank"),
Expand Down Expand Up @@ -82,9 +81,11 @@ const AddContacts = ({
< 8000 span class='blob-code-inner blob-code-marker ' data-code-marker=" "> <div>
<InputField
autoComplete="off"
hasError={errors.firstName && touched.firstName}
id="firstName"
inputBoxClassName="border focus:border-miru-han-purple-1000"
label="First Name"
marginBottom={errors.firstName && "mb-0"}
name="firstName"
setFieldError={setFieldError}
setFieldValue={setFieldValue}
Expand All @@ -96,9 +97,11 @@ const AddContacts = ({
/>
<InputField
autoComplete="off"
hasError={errors.lastName && touched.lastName}
id="lastName"
inputBoxClassName="border focus:border-miru-han-purple-1000"
label="Last Name"
marginBottom={errors.lastName && "mb-0"}
name="lastName"
setFieldError={setFieldError}
setFieldValue={setFieldValue}
Expand All @@ -110,8 +113,10 @@ const AddContacts = ({
/>
<InputField
autoComplete="off"
hasError={errors.email && touched.email}
id="email"
label="Email"
marginBottom={errors.email && "mb-0"}
name="email"
readOnly={false}
setFieldError={setFieldError}
Expand Down
Loading
0