88 Checkbox ,
99 FormControlLabel ,
1010 InputLabel ,
11- TextField ,
11+ // TextField,
1212} from "@material-ui/core" ;
13+ import TextField from '@mui/material/TextField' ;
1314
1415// The component panel section of the left panel displays all components and has the ability to add new components
1516const ComponentPanel = ( { isThemeLight} ) : JSX . Element => {
@@ -153,14 +154,15 @@ const ComponentPanel = ({isThemeLight}): JSX.Element => {
153154 New Component
154155 </ h4 >
155156 { /* input for new component */ }
156- < div style = { { display : 'flex' , justifyContent :'space-evenly ' , marginTop : '20px' , alignItems :'baseline' } } >
157+ < div style = { { display : 'flex' , justifyContent :'center ' , marginTop : '20px' , marginBottom : '20px' , alignItems :'baseline' } } >
157158 < div style = { { alignSelf :'center' } } >
158159 < InputLabel className = { isThemeLight ? `${ classes . inputLabel } ${ classes . lightThemeFontColor } ` : `${ classes . inputLabel } ${ classes . darkThemeFontColor } ` } >
159160 Name:
160161 </ InputLabel >
161162 < div className = { classes . inputWrapper } >
162163 < TextField
163- color = { 'primary' }
164+ // label='New Component Name'
165+ color = 'primary'
164166 variant = "outlined"
165167 className = { isThemeLight ? `${ classes . inputField } ${ classes . lightThemeFontColor } ` : `${ classes . inputField } ${ classes . darkThemeFontColor } ` }
166168 // inputprops and helpertext must be lowercase
@@ -199,15 +201,17 @@ const ComponentPanel = ({isThemeLight}): JSX.Element => {
199201 />
200202 </ div >
201203 </ div >
202- < div >
204+ < div style = { { display : 'flex' , justifyContent : 'center' } } >
203205 < br />
204- < CreateButton
206+ < Button
205207 className = { isThemeLight ? `${ classes . addComponentButton } ${ classes . lightThemeFontColor } ` : `${ classes . addComponentButton } ${ classes . darkThemeFontColor } ` }
208+ color = 'primary'
209+ variant = 'contained'
206210 id = "addComponentButton"
207211 onClick = { handleNameSubmit }
208212 >
209213 Create
210- </ CreateButton >
214+ </ Button >
211215 </ div >
212216 </ div >
213217 </ div >
@@ -276,7 +280,6 @@ const useStyles = makeStyles({
276280 fontFamily : 'Roboto, Raleway, sans-serif' ,
277281 fontSize : '90%' ,
278282 textAlign : 'center' ,
279- margin : '-20px 0px 5px 150px' ,
280283 borderStyle : 'none' ,
281284 transition : '0.3s' ,
282285 borderRadius : '25px' ,
@@ -298,16 +301,16 @@ const useStyles = makeStyles({
298301 }
299302 }
300303} ) ;
301-
302- const CreateButton = styled ( Button ) ( {
303- background : "#0099E6" ,
304- border : 0 ,
305- borderRadius : 3 ,
306- boxShadow : "0 0px 0px 2px #1a1a1a" ,
307- color : "white" ,
308- height : 24 ,
309- width : 60 ,
310- padding : "0 30px" ,
311- } ) ;
304+ // change to Button to make styling consistent
305+ // const CreateButton = styled(Button)({
306+ // background: "#0099E6",
307+ // border: 0,
308+ // borderRadius: 3,
309+ // boxShadow: "0 0px 0px 2px #1a1a1a",
310+ // color: "white",
311+ // height: 24,
312+ // width: 60,
313+ // padding: "0 30px",
314+ // });
312315
313316export default ComponentPanel ;
0 commit comments