1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00
unleash.unleash/frontend/src/component/user/common/InvalidToken/InvalidToken.tsx
olav 49b8e7329e refactor: convert auth tests from Cypress to Jest (#864)
* refactor: replace data-test with data-testid

* refactor: add Jest tests for auth pages

* refactor: remove Cypress tests for auth pages

* refactor: remove questionable snapshots

* refactor: share test server setup/teardown

* refactor: restore auth page flex layout

* refactor: use toBeInTheDocument

* refactor: change recent data-test attrs to data-testid
2022-04-08 13:13:45 +02:00

39 lines
1.2 KiB
TypeScript

import { Button, Typography } from '@material-ui/core';
import { Link } from 'react-router-dom';
import { INVALID_TOKEN_BUTTON } from 'utils/testIds';
import { useCommonStyles } from 'themes/commonStyles';
import classnames from 'classnames';
const InvalidToken = () => {
const commonStyles = useCommonStyles();
return (
<div
className={classnames(
commonStyles.contentSpacingY,
commonStyles.flexColumn,
commonStyles.itemsCenter
)}
>
<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"
data-testid={INVALID_TOKEN_BUTTON}
>
Reset password
</Button>
</div>
);
};
export default InvalidToken;