fix react error

This commit is contained in:
Olivier Gagnon 2021-10-23 14:36:07 -04:00
parent 9493768c0b
commit f5b23262f6

@ -41,13 +41,13 @@ export function OptionsModal(props: IProps): React.ReactElement {
<Modal open={props.open} onClose={props.onClose}> <Modal open={props.open} onClose={props.onClose}>
<Box display="flex" flexDirection="row" alignItems="center"> <Box display="flex" flexDirection="row" alignItems="center">
<Typography>Theme: </Typography> <Typography>Theme: </Typography>
<Select onChange={(event) => setTheme(event.target.value)} defaultValue={props.options.theme}> <Select onChange={(event) => setTheme(event.target.value)} value={theme}>
<MenuItem value="vs-dark">dark</MenuItem> <MenuItem value="vs-dark">dark</MenuItem>
<MenuItem value="light">light</MenuItem> <MenuItem value="light">light</MenuItem>
<MenuItem value="monokai">monokai</MenuItem> <MenuItem value="monokai">monokai</MenuItem>
<MenuItem value="solarish-dark">solarish-dark</MenuItem> <MenuItem value="solarized-dark">solarized-dark</MenuItem>
<MenuItem value="solarish-light">solarish-light</MenuItem> <MenuItem value="solarized-light">solarized-light</MenuItem>
</Select> </Select>
</Box> </Box>
<Box display="flex" flexDirection="row" alignItems="center"> <Box display="flex" flexDirection="row" alignItems="center">