diff --git a/.changeset/early-sheep-crash.md b/.changeset/early-sheep-crash.md new file mode 100644 index 00000000000..ed23049994c --- /dev/null +++ b/.changeset/early-sheep-crash.md @@ -0,0 +1,9 @@ +--- +"@aws-amplify/ui-react-native": patch +"@aws-amplify/ui-react": patch +"@aws-amplify/ui": patch +"@aws-amplify/ui-vue": patch +"@aws-amplify/ui-angular": patch +--- + +fix(authenticator): forgot password clean up diff --git a/packages/angular/projects/ui-angular/src/lib/components/authenticator/components/forgot-password/forgot-password.component.ts b/packages/angular/projects/ui-angular/src/lib/components/authenticator/components/forgot-password/forgot-password.component.ts index 95b4a9091a0..93ab7650441 100644 --- a/packages/angular/projects/ui-angular/src/lib/components/authenticator/components/forgot-password/forgot-password.component.ts +++ b/packages/angular/projects/ui-angular/src/lib/components/authenticator/components/forgot-password/forgot-password.component.ts @@ -14,7 +14,7 @@ const { getResetYourPasswordText, getSendCodeText, getBackToSignInText } = templateUrl: './forgot-password.component.html', }) export class ForgotPasswordComponent { - @HostBinding('attr.data-amplify-authenticator-forgotPassword') dataAttr = ''; + @HostBinding('attr.data-amplify-authenticator-forgotpassword') dataAttr = ''; @Input() public headerText = getResetYourPasswordText(); // translated texts diff --git a/packages/react-native/src/Authenticator/Defaults/types.ts b/packages/react-native/src/Authenticator/Defaults/types.ts index 6779a6d1f28..c6c9fddf9dc 100644 --- a/packages/react-native/src/Authenticator/Defaults/types.ts +++ b/packages/react-native/src/Authenticator/Defaults/types.ts @@ -10,7 +10,7 @@ export interface ConfirmSignInStyle {} export interface ConfirmSignUpStyle {} export interface ConfirmVerifyUserStyle {} export interface ForceNewPasswordStyle {} -export interface ResetPasswordStyle {} +export interface ForgotPasswordStyle {} export interface SetupTotpStyle {} export interface SignInStyle {} export interface SignUpStyle {} @@ -59,7 +59,7 @@ export type DefaultForceNewPasswordProps = React.ComponentPropsWithoutRef< export type DefaultForgotPasswordProps = React.ComponentPropsWithoutRef< DefaultComponents< TextFieldOptionsType, - { style?: ResetPasswordStyle } + { style?: ForgotPasswordStyle } >['ForgotPassword'] >; @@ -120,7 +120,7 @@ type ForceNewPasswordComponent
= OverrideComponents< type ForgotPasswordComponent
= OverrideComponents< TextFieldOptionsType, - { style?: ResetPasswordStyle } & P + { style?: ForgotPasswordStyle } & P >['ForgotPassword']; type SetupTotpComponent
= OverrideComponents<
diff --git a/packages/react/src/components/Authenticator/ForgotPassword/ForgotPassword.tsx b/packages/react/src/components/Authenticator/ForgotPassword/ForgotPassword.tsx
index fdc62d983e1..a792dcd8542 100644
--- a/packages/react/src/components/Authenticator/ForgotPassword/ForgotPassword.tsx
+++ b/packages/react/src/components/Authenticator/ForgotPassword/ForgotPassword.tsx
@@ -39,7 +39,7 @@ export const ForgotPassword = ({