Files
Checkmate/client/src/Pages/Auth/SetNewPassword/index.tsx
T

73 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-02-09 21:29:55 +00:00
import {
BaseAuthPage,
BulletPointCheck,
TextLink,
} from "@/Components/v2/design-elements";
2026-02-09 21:21:17 +00:00
import { Button, TextField } from "@/Components/v2/inputs";
2026-02-09 21:29:55 +00:00
import Stack from "@mui/material/Stack";
import { useTheme } from "@mui/material/styles";
2026-02-09 21:21:17 +00:00
import { useTranslation } from "react-i18next";
2026-02-09 21:00:27 +00:00
const SetNewPasswordPage = () => {
2026-02-09 21:29:55 +00:00
const theme = useTheme();
2026-02-09 21:21:17 +00:00
const { t } = useTranslation();
2026-02-09 21:29:55 +00:00
2026-02-09 21:00:27 +00:00
return (
<BaseAuthPage
2026-02-09 21:21:17 +00:00
title={t("pages.auth.setNewPassword.title")}
subtitle={t("pages.auth.setNewPassword.subtitle")}
2026-02-09 21:00:27 +00:00
>
2026-02-09 21:21:17 +00:00
<TextField
type="password"
fieldLabel={t("pages.auth.common.form.option.password.label")}
placeholder={t("pages.auth.common.form.option.password.placeholder")}
/>
<TextField
type="password"
fieldLabel={t("pages.auth.common.form.option.confirmPassword.label")}
placeholder={t("pages.auth.common.form.option.password.placeholder")}
/>
2026-02-09 21:29:55 +00:00
<Stack gap={theme.spacing(4)}>
<BulletPointCheck
text={t("auth.common.passwordRules.length")}
variant="info"
/>
<BulletPointCheck
text={t("auth.common.passwordRules.special")}
variant="info"
/>
<BulletPointCheck
text={t("auth.common.passwordRules.number")}
variant="info"
/>
<BulletPointCheck
text={t("auth.common.passwordRules.uppercase")}
variant="info"
/>
<BulletPointCheck
text={t("auth.common.passwordRules.lowercase")}
variant="info"
/>
<BulletPointCheck
text={t("auth.common.passwordRules.match")}
variant="info"
/>
</Stack>
2026-02-09 21:21:17 +00:00
<Button
variant="contained"
type="submit"
fullWidth
>
{t("auth.forgotPassword.buttons.resetPassword")}
</Button>
<TextLink
alignSelf="center"
text={t("pages.auth.forgotPassword.links.login.text")}
linkText={t("pages.auth.forgotPassword.links.login.linkText")}
href="/login"
/>
2026-02-09 21:00:27 +00:00
</BaseAuthPage>
);
};
export default SetNewPasswordPage;