2021-04-19 10:55:15 +02:00
|
|
|
import { Button, Typography } from '@material-ui/core';
|
|
|
|
import { Link } from 'react-router-dom';
|
2022-03-15 16:00:13 +01:00
|
|
|
import { INVALID_TOKEN_BUTTON } from 'testIds';
|
2022-03-28 10:49:59 +02:00
|
|
|
import { useCommonStyles } from 'common.styles';
|
2022-03-15 16:00:13 +01:00
|
|
|
import classnames from 'classnames';
|
2021-04-19 10:55:15 +02:00
|
|
|
|
|
|
|
const InvalidToken = () => {
|
|
|
|
const commonStyles = useCommonStyles();
|
|
|
|
return (
|
2022-03-15 16:00:13 +01:00
|
|
|
<div
|
|
|
|
className={classnames(
|
|
|
|
commonStyles.contentSpacingY,
|
|
|
|
commonStyles.flexColumn,
|
|
|
|
commonStyles.itemsCenter
|
|
|
|
)}
|
|
|
|
>
|
2021-04-19 10:55:15 +02:00
|
|
|
<Typography variant="h2" className={commonStyles.title}>
|
|
|
|
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-03-15 16:00:13 +01:00
|
|
|
data-test={INVALID_TOKEN_BUTTON}
|
2021-04-19 10:55:15 +02:00
|
|
|
>
|
|
|
|
Reset password
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default InvalidToken;
|