@@ -29,31 +29,33 @@ import {
29
29
updateProjectId ,
30
30
updateProjectName ,
31
31
updateProjectPublished ,
32
- toggleScreenshotTrigger ,
32
+ toggleScreenshotTrigger
33
33
} from '../../redux/reducers/slice/appStateSlice' ;
34
-
34
+ console . log ( 'test' ) ;
35
35
const { API_BASE_URL } = serverConfig ;
36
36
37
- const useStyles = makeStyles ( ( theme ) => createStyles ( {
38
- root : {
39
- flexGrow : 1 ,
40
- width : '100%' ,
41
- } ,
42
- menuButton : {
43
- marginRight : theme . spacing ( 1 ) ,
44
- color : 'white' ,
45
- } ,
46
- title : {
47
- flexGrow : 1 ,
48
- color : 'white' ,
49
- } ,
50
- manageProject : {
51
- display : 'flex' ,
52
- justifyContent : 'center' ,
53
- width : '100px' ,
54
- overflow : 'none' ,
55
- } ,
56
- } ) ) ;
37
+ const useStyles = makeStyles ( ( theme ) =>
38
+ createStyles ( {
39
+ root : {
40
+ flexGrow : 1 ,
41
+ width : '100%'
42
+ } ,
43
+ menuButton : {
44
+ marginRight : theme . spacing ( 1 ) ,
45
+ color : 'white'
46
+ } ,
47
+ title : {
48
+ flexGrow : 1 ,
49
+ color : 'white'
50
+ } ,
51
+ manageProject : {
52
+ display : 'flex' ,
53
+ justifyContent : 'center' ,
54
+ width : '100px' ,
55
+ overflow : 'none'
56
+ }
57
+ } )
58
+ ) ;
57
59
58
60
interface StyledMenuProps extends React . PropsWithChildren < { } > {
59
61
id : string ;
@@ -65,18 +67,18 @@ interface StyledMenuProps extends React.PropsWithChildren<{}> {
65
67
66
68
const StyledMenu = withStyles ( {
67
69
paper : {
68
- border : '1px solid #d3d4d5' ,
69
- } ,
70
+ border : '1px solid #d3d4d5'
71
+ }
70
72
} ) ( ( props : StyledMenuProps ) => (
71
73
< Menu
72
74
elevation = { 0 }
73
75
anchorOrigin = { {
74
76
vertical : 'bottom' ,
75
- horizontal : 'center' ,
77
+ horizontal : 'center'
76
78
} }
77
79
transformOrigin = { {
78
80
vertical : 'top' ,
79
- horizontal : 'center' ,
81
+ horizontal : 'center'
80
82
} }
81
83
open = { true }
82
84
{ ...props }
@@ -87,10 +89,10 @@ const StyledMenuItem = withStyles((theme) => ({
87
89
root : {
88
90
'&:focus' : {
89
91
'& .MuiListItemIcon-root, & .MuiListItemText-primary' : {
90
- color : theme . palette . common . white ,
91
- } ,
92
- } ,
93
- } ,
92
+ color : theme . palette . common . white
93
+ }
94
+ }
95
+ }
94
96
} ) ) ( MenuItem ) ;
95
97
96
98
/**
@@ -177,7 +179,7 @@ const navbarDropDown = (props): JSX.Element => {
177
179
// handlePublish logic
178
180
const handlePublish = ( ) => {
179
181
if ( ! state . name ) {
180
- console . log ( { state} ) ;
182
+ console . log ( { state } ) ;
181
183
console . error ( 'Project name cannot be empty' ) ;
182
184
return ;
183
185
}
@@ -247,20 +249,23 @@ const navbarDropDown = (props): JSX.Element => {
247
249
< span > Tutorial</ span >
248
250
</ button >
249
251
</ Link >
250
- < button onClick = { handlePublish } style = { { backgroundColor : '#0671E3' , color : 'white' } } >
251
- < svg
252
- xmlns = "http://www.w3.org/2000/svg"
253
- width = "16"
254
- height = "16"
255
- fill = "currentColor"
256
- className = "bi bi-upload"
257
- viewBox = "0 0 16 16"
258
- >
259
- < path d = "M.5 9.5a.5.5 0 0 0 .5.5h3v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-5h3a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5H10V1.5a.5.5 0 0 0-1 0v3H7V1.5a.5.5 0 0 0-1 0v3H.5a.5.5 0 0 0-.5.5v4z" />
260
- < path d = "M7 6v6h2V6H7z" />
261
- </ svg >
262
- < span > Publish</ span >
263
- </ button >
252
+ < button
253
+ onClick = { handlePublish }
254
+ style = { { backgroundColor : '#0671E3' , color : 'white' } }
255
+ >
256
+ < svg
257
+ xmlns = "http://www.w3.org/2000/svg"
258
+ width = "16"
259
+ height = "16"
260
+ fill = "currentColor"
261
+ className = "bi bi-upload"
262
+ viewBox = "0 0 16 16"
263
+ >
264
+ < path d = "M.5 9.5a.5.5 0 0 0 .5.5h3v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-5h3a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5H10V1.5a.5.5 0 0 0-1 0v3H7V1.5a.5.5 0 0 0-1 0v3H.5a.5.5 0 0 0-.5.5v4z" />
265
+ < path d = "M7 6v6h2V6H7z" />
266
+ </ svg >
267
+ < span > Publish</ span >
268
+ </ button >
264
269
{ /* <button onClick={() => clearWorkspace()}>
265
270
<svg
266
271
xmlns="http://www.w3.org/2000/svg"
0 commit comments