style: fix prettier formatting

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 20:37:54 -04:00
parent b24ab838f8
commit 6c58e25211
4 changed files with 176 additions and 153 deletions
+1 -3
View File
@@ -61,9 +61,7 @@ export function useReminders(): {
const removeReminder = useCallback(
async (eventId: string, timestamp: number) => {
const current = readReminders(mx);
const next = current.filter(
(r) => !(r.eventId === eventId && r.timestamp === timestamp),
);
const next = current.filter((r) => !(r.eventId === eventId && r.timestamp === timestamp));
await (mx as any).setAccountData(REMINDERS_KEY, { reminders: next });
},
[mx],
+3 -1
View File
@@ -416,7 +416,9 @@ function ReminderMonitor() {
check();
const interval = setInterval(check, 30_000);
const onVisible = () => { if (document.visibilityState === 'visible') check(); };
const onVisible = () => {
if (document.visibilityState === 'visible') check();
};
document.addEventListener('visibilitychange', onVisible);
return () => {
clearInterval(interval);