Skip to content

Commit

Permalink
use label prop for displaying phone number component labels
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Sep 1, 2024
1 parent 48aafed commit 8bcd420
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions src/Components/ABDM/LinkAbhaNumber/CreateWithAadhaar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,8 @@ function VerifyAadhaar({ memory, setMemory, next, goTo }: IVerifyAadhaarProps) {
</div>

<div className="mt-0">
<label
htmlFor="mobile_number"
className="block text-base font-normal text-secondary-900"
>
{t("enter_mobile_number")}
</label>
<PhoneNumberFormField
label={t("enter_mobile_number")}
labelSuffix={<></>}
name="mobile_number"
value={memory?.mobileNumber}
Expand Down Expand Up @@ -373,13 +368,8 @@ function LinkMobileNumber({ memory, setMemory, next }: ILinkMobileNumberProps) {
return (
<div>
<div className="mt-0">
<label
htmlFor="mobile_number"
className="block text-base font-normal text-secondary-900"
>
{t("enter_mobile_number")}
</label>
<PhoneNumberFormField
label={t("enter_mobile_number")}
labelSuffix={<></>}
name="mobile_number"
value={memory?.mobileNumber}
Expand Down Expand Up @@ -446,13 +436,8 @@ function VerifyMobileNumber({
return (
<div>
<div className="mt-0">
<label
htmlFor="mobile_number"
className="block text-base font-normal text-secondary-900"
>
{t("enter_mobile_number")}
</label>
<PhoneNumberFormField
label={t("enter_mobile_number")}
labelSuffix={<></>}
name="mobile_number"
value={memory?.mobileNumber}
Expand Down

0 comments on commit 8bcd420

Please sign in to comment.