style: fix prettier formatting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user