+
{id => changeEntry(index, { ...entry, name: event.target.value })} />}
+
+ {id => changeEntry(index, { ...entry, time: event.currentTarget.value })} />}
+ {id => }
+
+ {entry.type === "date" ?
{id => changeEntry(index, { ...entry, date: event.currentTarget.value })} />} :
+
{[[1, "Mon"], [2, "Tue"], [3, "Wed"], [4, "Thu"], [5, "Fri"], [6, "Sat"], [0, "Sun"]].map(([day, label]) => changeEntry(index, { ...entry, days: event.target.checked ? [...entry.days, Number(day)] : entry.days.filter(value => value !== day) })} />)}
}
+
+
)}
+
- {([['time', 'Remind me at'], ['quietStart', 'Quiet hours start'], ['quietEnd', 'Quiet hours end']] as const).map(([key, label]) =>
+ {([['quietStart', 'Quiet hours start'], ['quietEnd', 'Quiet hours end']] as const).map(([key, label]) =>
{id => })}
- During quiet hours we wait until they end. Equal start and end times turn quiet hours off. Missed reminders never carry into the next day.