Skip to content

Commit 48f3bfc

Browse files
committed
emotion: DeploySettingsLayout
1 parent ea5bb1b commit 48f3bfc

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

site/src/components/DeploySettingsLayout/DeploySettingsLayout.tsx

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { makeStyles } from "@mui/styles";
21
import { Margins } from "components/Margins/Margins";
32
import { Stack } from "components/Stack/Stack";
43
import { Sidebar } from "./Sidebar";
@@ -31,15 +30,18 @@ export const useDeploySettings = (): DeploySettingsContextValue => {
3130

3231
export const DeploySettingsLayout: FC = () => {
3332
const deploymentConfigQuery = useQuery(deploymentConfig());
34-
const styles = useStyles();
3533
const permissions = usePermissions();
3634

3735
return (
3836
<RequirePermission isFeatureVisible={permissions.viewDeploymentValues}>
3937
<Margins>
40-
<Stack className={styles.wrapper} direction="row" spacing={6}>
38+
<Stack
39+
css={(theme) => ({ padding: theme.spacing(6, 0) })}
40+
direction="row"
41+
spacing={6}
42+
>
4143
<Sidebar />
42-
<main className={styles.content}>
44+
<main css={{ maxWidth: 800, width: "100%" }}>
4345
{deploymentConfigQuery.data ? (
4446
<DeploySettingsContext.Provider
4547
value={{
@@ -59,14 +61,3 @@ export const DeploySettingsLayout: FC = () => {
5961
</RequirePermission>
6062
);
6163
};
62-
63-
const useStyles = makeStyles((theme) => ({
64-
wrapper: {
65-
padding: theme.spacing(6, 0),
66-
},
67-
68-
content: {
69-
maxWidth: 800,
70-
width: "100%",
71-
},
72-
}));

0 commit comments

Comments
 (0)