Skip to content

Commit 9e453d1

Browse files
committed
emotion: SettingsLayout
1 parent da11284 commit 9e453d1

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
import { makeStyles } from "@mui/styles";
2-
import { Sidebar } from "./Sidebar";
3-
import { Stack } from "components/Stack/Stack";
4-
import { FC, Suspense } from "react";
1+
import { type FC, Suspense } from "react";
2+
import { Outlet } from "react-router-dom";
53
import { Helmet } from "react-helmet-async";
64
import { pageTitle } from "utils/page";
7-
import { Margins } from "../Margins/Margins";
85
import { useMe } from "hooks/useMe";
96
import { Loader } from "components/Loader/Loader";
10-
import { Outlet } from "react-router-dom";
7+
import { Stack } from "components/Stack/Stack";
8+
import { Margins } from "../Margins/Margins";
9+
import { Sidebar } from "./Sidebar";
1110

1211
export const SettingsLayout: FC = () => {
13-
const styles = useStyles();
1412
const me = useMe();
1513

1614
return (
@@ -20,10 +18,21 @@ export const SettingsLayout: FC = () => {
2018
</Helmet>
2119

2220
<Margins>
23-
<Stack className={styles.wrapper} direction="row" spacing={6}>
21+
<Stack
22+
css={(theme) => ({
23+
padding: theme.spacing(6, 0),
24+
})}
25+
direction="row"
26+
spacing={6}
27+
>
2428
<Sidebar user={me} />
2529
<Suspense fallback={<Loader />}>
26-
<main className={styles.content}>
30+
<main
31+
css={{
32+
maxWidth: 800,
33+
width: "100%",
34+
}}
35+
>
2736
<Outlet />
2837
</main>
2938
</Suspense>
@@ -32,14 +41,3 @@ export const SettingsLayout: FC = () => {
3241
</>
3342
);
3443
};
35-
36-
const useStyles = makeStyles((theme) => ({
37-
wrapper: {
38-
padding: theme.spacing(6, 0),
39-
},
40-
41-
content: {
42-
maxWidth: 800,
43-
width: "100%",
44-
},
45-
}));

0 commit comments

Comments
 (0)