fix linting errors
This commit is contained in:
@@ -24,7 +24,7 @@ export function RecurrencePicker({ value, onChange }: Props) {
|
||||
value.split(';').map(p => p.split('='))
|
||||
)
|
||||
return {
|
||||
freq: (parts.FREQ as any) || 'NONE',
|
||||
freq: parts.FREQ || 'NONE',
|
||||
interval: parts.INTERVAL ? parseInt(parts.INTERVAL, 10) : 1,
|
||||
byDay: parts.BYDAY ? parts.BYDAY.split(',') : [],
|
||||
count: parts.COUNT ? parseInt(parts.COUNT, 10) : undefined,
|
||||
@@ -68,7 +68,7 @@ export function RecurrencePicker({ value, onChange }: Props) {
|
||||
<select
|
||||
className="border p-1 rounded w-full"
|
||||
value={rec.freq}
|
||||
onChange={e => update({ freq: e.target.value as any })}
|
||||
onChange={e => update({ freq: e.target.value as "NONE" | "DAILY" | "WEEKLY" | "MONTHLY" | undefined })}
|
||||
>
|
||||
<option value="NONE">Does not repeat</option>
|
||||
<option value="DAILY">Daily</option>
|
||||
|
||||
Reference in New Issue
Block a user