diff --git a/web/src/pages/Notifications.tsx b/web/src/pages/Notifications.tsx index efc95b4d..be2cf642 100644 --- a/web/src/pages/Notifications.tsx +++ b/web/src/pages/Notifications.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { Fragment, useState } from "react"; import { Link } from "react-router"; import { Bell, BellOff, Check, CheckCheck, Loader2, Settings2 } from "lucide-react"; import type { AppNotification } from "@/api/types"; @@ -6,6 +6,7 @@ import { Button } from "@/components/ui/button"; import { Skeleton } from "@/components/ui/skeleton"; import { Switch } from "@/components/ui/switch"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; +import { Separator } from "@/components/ui/separator"; import { formatEpisodeCode, useMarkAllNotificationsRead, @@ -251,7 +252,7 @@ function NotificationPreferencesPopover() { Preferences - + {isLoading ? (
@@ -266,19 +267,26 @@ function NotificationPreferencesPopover() {
) : ( -
+
{toggles.map((toggle, index) => ( -
-
-
{toggle.label}
-
{toggle.description}
+ + {index === 1 && } +
0 && !prefs.enabled ? "opacity-50" : "" + }`} + > +
+
{toggle.label}
+
{toggle.description}
+
+ 0 && !prefs.enabled} + onCheckedChange={(checked) => updatePrefs.mutate({ [toggle.key]: checked })} + />
- 0 && !prefs.enabled} - onCheckedChange={(checked) => updatePrefs.mutate({ [toggle.key]: checked })} - /> -
+ ))}
)}