fix linting errors

This commit is contained in:
2025-08-15 23:43:09 -04:00
parent 759cf5df2c
commit 39c870998c

View File

@@ -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>