Skip to content

Commit

Permalink
Add checkbox style
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyvelich committed Oct 22, 2020
1 parent 85c92b6 commit e7f8f37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const useStyles = makeStyles({
selectBox: {
width: 150,
},
checkBox: {
textAlign: 'center',
},
});

const Objective = props => {
Expand Down Expand Up @@ -169,17 +172,16 @@ const Objective = props => {
</Grid>
</Grid>
<Grid container alignItems={'center'} className={classes.parameter}>
<Grid item xs={12} sm={2}>
<Grid item sm={2}>
<Typography variant={'subtitle1'}>
<Tooltip title={'Strategy for extracting metrics to calculate objective'}>
<HelpOutlineIcon className={classes.help} color={'primary'} />
</Tooltip>
MetricStrategies (optional)
</Typography>
</Grid>
<Grid item xs={12} sm={1}>
<Grid item sm={1} className={classes.checkBox}>
<FormControlLabel
className={classes.checkBox}
control={
<Checkbox
checked={checkedSetStrategies}
Expand All @@ -191,7 +193,7 @@ const Objective = props => {
/>
</Grid>
{checkedSetStrategies && (
<Grid item xs={12} sm={9}>
<Grid item sm={9}>
{props.metricStrategies.map((metric, mIndex) => {
return (
<Grid container key={mIndex} className={classes.parameter}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const useStyles = makeStyles({
selectBox: {
width: 150,
},
checkBox: {
textAlign: 'center',
},
});

const Objective = props => {
Expand Down Expand Up @@ -169,17 +172,16 @@ const Objective = props => {
</Grid>
</Grid>
<Grid container alignItems={'center'} className={classes.parameter}>
<Grid item xs={12} sm={2}>
<Grid item sm={2}>
<Typography variant={'subtitle1'}>
<Tooltip title={'Strategy for extracting metrics to calculate objective'}>
<HelpOutlineIcon className={classes.help} color={'primary'} />
</Tooltip>
MetricStrategies (optional)
</Typography>
</Grid>
<Grid item xs={12} sm={1}>
<Grid item sm={1} className={classes.checkBox}>
<FormControlLabel
className={classes.checkBox}
control={
<Checkbox
checked={checkedSetStrategies}
Expand All @@ -191,7 +193,7 @@ const Objective = props => {
/>
</Grid>
{checkedSetStrategies && (
<Grid item xs={12} sm={9}>
<Grid item sm={9}>
{props.metricStrategies.map((metric, mIndex) => {
return (
<Grid container key={mIndex} className={classes.parameter}>
Expand Down

0 comments on commit e7f8f37

Please sign in to comment.