2022-05-02 15:52:41 +02:00
|
|
|
import { Button, Typography } from '@mui/material';
|
2021-05-05 14:58:22 +02:00
|
|
|
import { useHistory } from 'react-router';
|
|
|
|
|
2022-03-25 12:34:20 +01:00
|
|
|
import { ReactComponent as LogoIcon } from 'assets/icons/logoBg.svg';
|
2021-05-05 14:58:22 +02:00
|
|
|
|
|
|
|
import { useStyles } from './NotFound.styles';
|
|
|
|
|
|
|
|
const NotFound = () => {
|
|
|
|
const history = useHistory();
|
2022-05-02 15:52:41 +02:00
|
|
|
const { classes: styles } = useStyles();
|
2021-05-05 14:58:22 +02:00
|
|
|
|
|
|
|
const onClickHome = () => {
|
|
|
|
history.push('/');
|
|
|
|
};
|
|
|
|
|
|
|
|
const onClickBack = () => {
|
|
|
|
history.goBack();
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={styles.container}>
|
|
|
|
<div>
|
2021-05-21 14:06:40 +02:00
|
|
|
<LogoIcon className={styles.logo} />
|
2021-05-05 14:58:22 +02:00
|
|
|
<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;
|