Skip to content

Commit 51ca0b9

Browse files
committed
emotion: NotFoundPage
1 parent 0eee16e commit 51ca0b9

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

site/src/pages/404Page/404Page.tsx

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
1-
import { makeStyles } from "@mui/styles";
21
import Typography from "@mui/material/Typography";
3-
import { FC } from "react";
2+
import { type FC } from "react";
43

54
export const NotFoundPage: FC = () => {
6-
const styles = useStyles();
7-
85
return (
9-
<div className={styles.root}>
10-
<div className={styles.headingContainer}>
6+
<div
7+
css={{
8+
width: "100%",
9+
height: "100%",
10+
display: "flex",
11+
flexDirection: "row",
12+
justifyContent: "center",
13+
alignItems: "center",
14+
}}
15+
>
16+
<div
17+
css={(theme) => ({
18+
margin: theme.spacing(1),
19+
padding: theme.spacing(1),
20+
borderRight: theme.palette.divider,
21+
})}
22+
>
1123
<Typography variant="h4">404</Typography>
1224
</div>
1325
<Typography variant="body2">This page could not be found.</Typography>
1426
</div>
1527
);
1628
};
1729

18-
const useStyles = makeStyles((theme) => ({
19-
root: {
20-
width: "100%",
21-
height: "100%",
22-
display: "flex",
23-
flexDirection: "row",
24-
justifyContent: "center",
25-
alignItems: "center",
26-
},
27-
headingContainer: {
28-
margin: theme.spacing(1),
29-
padding: theme.spacing(1),
30-
borderRight: theme.palette.divider,
31-
},
32-
}));
33-
3430
export default NotFoundPage;

0 commit comments

Comments
 (0)