2022-05-02 15:52:41 +02:00
|
|
|
import { Button, Typography } from '@mui/material';
|
2021-04-19 10:55:15 +02:00
|
|
|
import { Link } from 'react-router-dom';
|
2022-04-01 10:28:15 +02:00
|
|
|
import { INVALID_TOKEN_BUTTON } from 'utils/testIds';
|
2022-05-02 15:52:41 +02:00
|
|
|
import { useThemeStyles } from 'themes/themeStyles';
|
2022-03-15 16:00:13 +01:00
|
|
|
import classnames from 'classnames';
|
2021-04-19 10:55:15 +02:00
|
|
|
|
|
|
|
const InvalidToken = () => {
|
2022-05-02 15:52:41 +02:00
|
|
|
const { classes: themeStyles } = useThemeStyles();
|
2021-04-19 10:55:15 +02:00
|
|
|
return (
|
2022-03-15 16:00:13 +01:00
|
|
|
<div
|
|
|
|
className={classnames(
|
2022-05-02 15:52:41 +02:00
|
|
|
themeStyles.contentSpacingY,
|
|
|
|
themeStyles.flexColumn,
|
|
|
|
themeStyles.itemsCenter
|
2022-03-15 16:00:13 +01:00
|
|
|
)}
|
|
|
|
>
|
2022-05-02 15:52:41 +02:00
|
|
|
<Typography variant="h2" className={themeStyles.title}>
|
2021-04-19 10:55:15 +02:00
|
|
|
Invalid token
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="subtitle1">
|
|
|
|
Your token has either been used to reset your password, or it
|
|
|
|
has expired. Please request a new reset password URL in order to
|
|
|
|
reset your password.
|
|
|
|
</Typography>
|
|
|
|
<Button
|
|
|
|
variant="contained"
|
|
|
|
color="primary"
|
|
|
|
component={Link}
|
|
|
|
to="forgotten-password"
|
2022-04-08 13:13:45 +02:00
|
|
|
data-testid={INVALID_TOKEN_BUTTON}
|
2021-04-19 10:55:15 +02:00
|
|
|
>
|
|
|
|
Reset password
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default InvalidToken;
|