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,7 +135,9 @@ 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>
}
{options.bysetpos &&
<Select value={options.bysetpos[0]} <Select value={options.bysetpos[0]}
onChange={(event: React.FormEvent<{ value: unknown }>) => { onChange={(event: React.FormEvent<{ value: unknown }>) => {
updateRule({ bysetpos: [Number((event.target as HTMLInputElement).value)] }); updateRule({ bysetpos: [Number((event.target as HTMLInputElement).value)] });
@ -145,8 +147,10 @@ export default function RRule(props: PropsType) {
<MenuItem value={3}>Third</MenuItem> <MenuItem value={3}>Third</MenuItem>
<MenuItem value={4}>Fourth</MenuItem> <MenuItem value={4}>Fourth</MenuItem>
<MenuItem value={-1}>Last</MenuItem> <MenuItem value={-1}>Last</MenuItem>
</Select>} </Select>
</div>} }
</div>
)}
<FormControl> <FormControl>
<InputLabel>Ends</InputLabel> <InputLabel>Ends</InputLabel>
<Select <Select

Loading…
Cancel
Save