RRule: fix indentation.

master
Tom Hacohen 5 years ago
parent e2b732f212
commit 16255e4cad

@ -121,8 +121,8 @@ export default function RRule(props: PropsType) {
{menuItemsFrequency} {menuItemsFrequency}
</Select> </Select>
</div> </div>
{ {!disableComplex && (
!disableComplex && <div style={{ display: 'flex' }}> <div style={{ display: 'flex' }}>
{(options.freq === 'MONTHLY') && {(options.freq === 'MONTHLY') &&
<Select value={options.bysetpos ? MonthRepeat.Bysetpos : MonthRepeat.Bymonthday} <Select value={options.bysetpos ? MonthRepeat.Bysetpos : MonthRepeat.Bymonthday}
onChange={(event: React.FormEvent<{ value: unknown }>) => { onChange={(event: React.FormEvent<{ value: unknown }>) => {
@ -135,18 +135,22 @@ export default function RRule(props: PropsType) {
}}> }}>
<MenuItem value={MonthRepeat.Bymonthday}>On</MenuItem> <MenuItem value={MonthRepeat.Bymonthday}>On</MenuItem>
<MenuItem value={MonthRepeat.Bysetpos}>On the</MenuItem> <MenuItem value={MonthRepeat.Bysetpos}>On the</MenuItem>
</Select>} {options.bysetpos && </Select>
<Select value={options.bysetpos[0]} }
onChange={(event: React.FormEvent<{ value: unknown }>) => { {options.bysetpos &&
updateRule({ bysetpos: [Number((event.target as HTMLInputElement).value)] }); <Select value={options.bysetpos[0]}
}}> onChange={(event: React.FormEvent<{ value: unknown }>) => {
<MenuItem value={1}>First</MenuItem> updateRule({ bysetpos: [Number((event.target as HTMLInputElement).value)] });
<MenuItem value={2}>Second</MenuItem> }}>
<MenuItem value={3}>Third</MenuItem> <MenuItem value={1}>First</MenuItem>
<MenuItem value={4}>Fourth</MenuItem> <MenuItem value={2}>Second</MenuItem>
<MenuItem value={-1}>Last</MenuItem> <MenuItem value={3}>Third</MenuItem>
</Select>} <MenuItem value={4}>Fourth</MenuItem>
</div>} <MenuItem value={-1}>Last</MenuItem>
</Select>
}
</div>
)}
<FormControl> <FormControl>
<InputLabel>Ends</InputLabel> <InputLabel>Ends</InputLabel>
<Select <Select

Loading…
Cancel
Save