mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
|
import { Button, Typography } from '@material-ui/core';
|
||
|
import { useHistory } from 'react-router';
|
||
|
|
||
|
import logo from '../../../assets/img/logo.png';
|
||
|
|
||
|
import { useStyles } from './NotFound.styles';
|
||
|
|
||
|
const NotFound = () => {
|
||
|
const history = useHistory();
|
||
|
const styles = useStyles();
|
||
|
|
||
|
const onClickHome = () => {
|
||
|
history.push('/');
|
||
|
};
|
||
|
|
||
|
const onClickBack = () => {
|
||
|
history.goBack();
|
||
|
};
|
||
|
|
||
|
return (
|
||
|
<div className={styles.container}>
|
||
|
<div>
|
||
|
<img src={logo} alt="unleash logo" 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;
|