File tree 1 file changed +6
-15
lines changed
site/src/components/DeploySettingsLayout 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
- import { makeStyles } from "@mui/styles" ;
2
1
import { Margins } from "components/Margins/Margins" ;
3
2
import { Stack } from "components/Stack/Stack" ;
4
3
import { Sidebar } from "./Sidebar" ;
@@ -31,15 +30,18 @@ export const useDeploySettings = (): DeploySettingsContextValue => {
31
30
32
31
export const DeploySettingsLayout : FC = ( ) => {
33
32
const deploymentConfigQuery = useQuery ( deploymentConfig ( ) ) ;
34
- const styles = useStyles ( ) ;
35
33
const permissions = usePermissions ( ) ;
36
34
37
35
return (
38
36
< RequirePermission isFeatureVisible = { permissions . viewDeploymentValues } >
39
37
< 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
+ >
41
43
< Sidebar />
42
- < main className = { styles . content } >
44
+ < main css = { { maxWidth : 800 , width : "100%" } } >
43
45
{ deploymentConfigQuery . data ? (
44
46
< DeploySettingsContext . Provider
45
47
value = { {
@@ -59,14 +61,3 @@ export const DeploySettingsLayout: FC = () => {
59
61
</ RequirePermission >
60
62
) ;
61
63
} ;
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
- } ) ) ;
You can’t perform that action at this time.
0 commit comments