0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00
logto/packages/ui/src/pages/ResetPassword/index.tsx

26 lines
681 B
TypeScript
Raw Normal View History

import SecondaryPageWrapper from '@/components/SecondaryPageWrapper';
import SetPassword from '@/containers/SetPassword';
import useResetPassword from './use-reset-password';
const ResetPassword = () => {
const { resetPassword, errorMessage, clearErrorMessage } = useResetPassword();
return (
<SecondaryPageWrapper
title="description.new_password"
description="error.password_min_length"
descriptionProps={{ min: 6 }}
>
<SetPassword
autoFocus
errorMessage={errorMessage}
clearErrorMessage={clearErrorMessage}
onSubmit={resetPassword}
/>
</SecondaryPageWrapper>
);
};
export default ResetPassword;