{t("EMAIL_PASSWORD_RESET_HEADER_TITLE")}
@@ -81,7 +77,7 @@ const EmailPasswordResetPasswordEmail: React.FC
= (props) => {
onError={props.onError}
formFields={formFields}
buttonLabel={"EMAIL_PASSWORD_RESET_SEND_BTN"}
- onSuccess={onSuccess}
+ onSuccess={props.onSuccess}
callAPI={async (formFields) => {
const validationErrors = await validateForm(
formFields,
@@ -118,9 +114,26 @@ const EmailPasswordResetPasswordEmail: React.FC = (props) => {
showLabels={true}
validateOnBlur={true}
/>
+
+ );
+ }
+);
+
+export const ResetPasswordEmail: React.FC = (props) => {
+ const [status, setStatus] = useState("READY");
+ const onSuccess = (): void => {
+ setStatus("SENT");
+ };
+
+ const resend = (): void => {
+ setStatus("READY");
+ };
+
+ return (
+
);
};
-
-export const ResetPasswordEmail = withOverride("EmailPasswordResetPasswordEmail", EmailPasswordResetPasswordEmail);