@@ -10,6 +10,7 @@ import TextField from '@material-ui/core/TextField';
10
10
import Button from '@material-ui/core/Button' ;
11
11
import FormControlLabel from '@material-ui/core/FormControlLabel' ;
12
12
import FormControl from '@material-ui/core/FormControl' ;
13
+ import Checkbox from '@material-ui/core/Checkbox' ;
13
14
import Switch from '@material-ui/core/Switch' ;
14
15
import InputLabel from '@material-ui/core/InputLabel' ;
15
16
import MenuItem from '@material-ui/core/MenuItem' ;
@@ -22,13 +23,18 @@ const useStyles = makeStyles({
22
23
marginTop : '15px'
23
24
} ,
24
25
inputWrapper : {
25
- height : '115px' ,
26
+ // height: '115px',
26
27
textAlign : 'center' ,
27
28
display : 'flex' ,
29
+ alignItems : 'center' ,
28
30
justifyContent : 'center' ,
29
31
paddingLeft : '35px' ,
30
32
marginBottom : '15px'
31
33
} ,
34
+ rootCheckBox : { } ,
35
+ rootCheckBoxLabel : {
36
+ color : 'white'
37
+ } ,
32
38
projectTypeWrapper : {
33
39
paddingLeft : '35px' ,
34
40
marginBottom : '15px'
@@ -77,7 +83,11 @@ const useStyles = makeStyles({
77
83
marginLeft : '10px'
78
84
} ,
79
85
button : {
80
- fontSize : '1rem'
86
+ fontSize : '1rem' ,
87
+ height : '70px' ,
88
+ maginTop : '10px' ,
89
+ border : '1px solid rgba(70,131,83)' ,
90
+ backgroundColor : 'rgba(1,212,109,0.1)'
81
91
} ,
82
92
rootToggle : {
83
93
color : '#01d46d' ,
@@ -212,25 +222,21 @@ const ComponentPanel = (): JSX.Element => {
212
222
onChange = { handleNameInput }
213
223
/>
214
224
< div className = { classes . btnGroup } >
215
- < Button
216
- className = { classes . button }
217
- color = "primary"
218
- onClick = { handleNameSubmit }
219
- >
220
- ADD
221
- </ Button >
222
225
< FormControlLabel
223
- control = {
224
- < Switch
225
- checked = { isRoot }
226
- onChange = { toggleRootStatus }
227
- color = "primary"
228
- />
229
- }
230
- className = { classes . rootToggle }
231
- label = "ROOT"
226
+ value = "top"
227
+ control = { < Checkbox color = "primary" onChange = { toggleRootStatus } /> }
228
+ label = { state . projectType === 'Next.js' ? 'Page' : 'Root' }
229
+ className = { classes . rootCheckBoxLabel }
230
+ labelPlacement = "top"
232
231
/>
233
232
</ div >
233
+ < Button
234
+ className = { classes . button }
235
+ color = "primary"
236
+ onClick = { handleNameSubmit }
237
+ >
238
+ ADD
239
+ </ Button >
234
240
</ div >
235
241
< div className = { classes . panelWrapperList } >
236
242
< h4 > { state . projectType === 'Next.js' ? 'Pages' : 'Root components' } </ h4 >
0 commit comments