File tree Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Original file line number Diff line number Diff line change 6
6
Container ,
7
7
Box ,
8
8
} from '@mui/material' ;
9
- import { makeStyles } from '@mui/styles'
10
9
import { User } from '@firebase/auth' ;
11
10
import { ref , onValue , DataSnapshot } from '@firebase/database' ;
12
11
import { AuthProvider } from '@/lib/AuthProvider' ;
@@ -23,20 +22,6 @@ const Editors = {
23
22
iframe : IFrameWidgetEditor ,
24
23
} ;
25
24
26
- const useStyles = makeStyles ( ( _ ) => ( {
27
- root : {
28
- display : 'flex' ,
29
- flexDirection : 'column' ,
30
- width : '100%' ,
31
- height : '100vh' ,
32
- overflow : 'hidden' ,
33
- } ,
34
- content : {
35
- flex : 1 ,
36
- overflow : 'auto' ,
37
- } ,
38
- } ) ) ;
39
-
40
25
type Widget = {
41
26
name : string ;
42
27
}
@@ -67,7 +52,6 @@ const Widgets = ({ profile }: { profile: string }) => {
67
52
} ;
68
53
69
54
const AdminIndexPage = ( ) => {
70
- const classes = useStyles ( ) ;
71
55
const router = useRouter ( ) ;
72
56
const [ currentUser , setCurrentUser ] = useState < User | null > ( null ) ;
73
57
@@ -88,14 +72,20 @@ const AdminIndexPage = () => {
88
72
currentUser !== null ? (
89
73
< AuthProvider >
90
74
< CssBaseline />
91
- < div className = { classes . root } >
75
+ < Box sx = { {
76
+ display : 'flex' ,
77
+ flexDirection : 'column' ,
78
+ width : '100%' ,
79
+ height : '100vh' ,
80
+ overflow : 'hidden' ,
81
+ } } >
92
82
< Navbar profile = { currentProfile } />
93
- < Container className = { classes . content } >
83
+ < Container sx = { { flex : 1 , overflow : 'auto' } } >
94
84
< Box my = { 4 } >
95
85
< Widgets profile = { currentProfile } />
96
86
</ Box >
97
87
</ Container >
98
- </ div >
88
+ </ Box >
99
89
</ AuthProvider >
100
90
) : (
101
91
< Signin />
You can’t perform that action at this time.
0 commit comments