2022-10-31 18:10:53 +08:00
|
|
|
import SecondaryPageWrapper from '@/components/SecondaryPageWrapper';
|
2022-11-02 11:28:06 +08:00
|
|
|
import SetPassword from '@/containers/SetPassword';
|
|
|
|
|
|
|
|
import useResetPassword from './use-reset-password';
|
2022-09-20 10:16:28 +08:00
|
|
|
|
|
|
|
const ResetPassword = () => {
|
2022-11-02 11:28:06 +08:00
|
|
|
const { resetPassword, errorMessage, clearErrorMessage } = useResetPassword();
|
|
|
|
|
2022-09-20 10:16:28 +08:00
|
|
|
return (
|
2023-03-01 13:42:45 +08:00
|
|
|
<SecondaryPageWrapper
|
|
|
|
title="description.new_password"
|
|
|
|
description="error.password_min_length"
|
|
|
|
descriptionProps={{ min: 6 }}
|
|
|
|
>
|
2022-11-02 11:28:06 +08:00
|
|
|
<SetPassword
|
|
|
|
autoFocus
|
|
|
|
errorMessage={errorMessage}
|
|
|
|
clearErrorMessage={clearErrorMessage}
|
|
|
|
onSubmit={resetPassword}
|
|
|
|
/>
|
2022-10-31 18:10:53 +08:00
|
|
|
</SecondaryPageWrapper>
|
2022-09-20 10:16:28 +08:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ResetPassword;
|