1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
unleash.unleash/frontend/src/component/common/NotFound/NotFound.tsx
Nuno Góis 672a3f0b92 fix: group project access inconsistencies (#1178)
* fix: group project access inconsistencies

* fix relative path

* wip

* refactor: make project tabs work as routes

* refactor: finish refactoring project assign forms

* fix: update snaps

* fix: update snaps

* add some basic cypress e2e tests to groups

* add remaining cypress e2e tests for group CRUD

* add groups e2e to gh workflows

* refactor: simplify useMemo usage

* add GO_BACK navigate const

* fix: remove trailing slash on user creation request

Co-authored-by: olav <mail@olav.io>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-08-04 12:57:25 +01:00

48 lines
1.4 KiB
TypeScript

import { Button, Typography } from '@mui/material';
import { useNavigate } from 'react-router';
import { ReactComponent as LogoIcon } from 'assets/icons/logoBg.svg';
import { useStyles } from './NotFound.styles';
import { GO_BACK } from 'constants/navigate';
const NotFound = () => {
const navigate = useNavigate();
const { classes: styles } = useStyles();
const onClickHome = () => {
navigate('/');
};
const onClickBack = () => {
navigate(GO_BACK);
};
return (
<div className={styles.container}>
<div>
<LogoIcon className={styles.logo} />
<div className={styles.content}>
<Typography variant="h1" style={{ fontSize: '2rem' }}>
Ooops. That's a page we haven't toggled on yet.
</Typography>
</div>
<div className={styles.buttonContainer}>
<Button
variant="contained"
color="primary"
onClick={onClickBack}
>
Go back
</Button>
<Button onClick={onClickHome} className={styles.homeButton}>
Go home
</Button>
</div>
</div>
</div>
);
};
export default NotFound;