Skip to content

Commit

Permalink
Merge branch 'develop' into userList_design_update
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 authored Jan 14, 2025
2 parents 16145f2 + 1021155 commit b789369
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Facility/CreateFacilityForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export default function CreateFacilityForm({
<FormLabel required>Phone Number</FormLabel>
<FormControl>
<Input
type="tel"
data-cy="facility-phone"
placeholder="+91XXXXXXXXXX"
maxLength={13}
Expand Down
2 changes: 2 additions & 0 deletions src/components/Patient/PatientRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export default function PatientRegistration(
<FormLabel required>{t("phone_number")}</FormLabel>
<FormControl>
<Input
type="tel"
{...field}
maxLength={13}
onChange={(e) => {
Expand Down Expand Up @@ -391,6 +392,7 @@ export default function PatientRegistration(
</FormLabel>
<FormControl>
<Input
type="tel"
{...field}
maxLength={13}
data-cy="patient-emergency-phone-input"
Expand Down
8 changes: 7 additions & 1 deletion src/components/Users/CreateUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,12 @@ export default function CreateUserForm({ onSubmitSuccess }: Props) {
<FormItem>
<FormLabel>{t("phone_number")}</FormLabel>
<FormControl>
<Input type="tel" placeholder="+91XXXXXXXXXX" {...field} />
<Input
type="tel"
placeholder="+91XXXXXXXXXX"
maxLength={13}
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
Expand All @@ -329,6 +334,7 @@ export default function CreateUserForm({ onSubmitSuccess }: Props) {
<Input
placeholder="+91XXXXXXXXXX"
type="tel"
maxLength={13}
{...field}
disabled={isWhatsApp}
/>
Expand Down

0 comments on commit b789369

Please sign in to comment.