1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/common/NotFound/NotFound.tsx

47 lines
1.3 KiB
TypeScript
Raw Normal View History

import { Button, Typography } from '@mui/material';
import { useHistory } from 'react-router';
import { ReactComponent as LogoIcon } from 'assets/icons/logoBg.svg';
import { useStyles } from './NotFound.styles';
const NotFound = () => {
const history = useHistory();
const { classes: styles } = useStyles();
const onClickHome = () => {
history.push('/');
};
const onClickBack = () => {
history.goBack();
};
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;