Skip to content

Commit 83f0f1e

Browse files
jacobloganJacob Logan
andauthored
update authenticator to use the new dial code props (#2519)
* update authenticator to use the new dial code props * Create gold-tips-punch.md Co-authored-by: Jacob Logan <[email protected]>
1 parent 72132a8 commit 83f0f1e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/gold-tips-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui-react": patch
3+
---
4+
5+
update authenticator to use the new dial code props

packages/react/src/components/Authenticator/shared/FormField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export function FormField({
3939
<PhoneNumberField
4040
{...props}
4141
name={name}
42-
defaultCountryCode={dialCode}
43-
countryCodeName="country_code"
42+
defaultDialCode={dialCode}
43+
dialCodeName="country_code"
4444
autoComplete={autoComplete}
4545
hasError={hasError}
4646
aria-describedby={ariaDescribedBy}

0 commit comments

Comments
 (0)