diff --git a/web/src/components/menu/GeneralSettings.tsx b/web/src/components/menu/GeneralSettings.tsx index 56c0dd47c..cd0ce1749 100644 --- a/web/src/components/menu/GeneralSettings.tsx +++ b/web/src/components/menu/GeneralSettings.tsx @@ -66,6 +66,7 @@ import { DialogTrigger, } from "../ui/dialog"; import { TooltipPortal } from "@radix-ui/react-tooltip"; +import { cn } from "@/lib/utils"; type GeneralSettingsProps = { className?: string; @@ -113,249 +114,249 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) { return ( <> -
- - - - -
- -
-
- - -

Settings

-
-
-
-
- -
- System - - - - - - System metrics - - - - - - System logs - - - - - Configuration - - - - - - - Settings - - - - - - Configuration editor - - - - Appearance - - - - - - Dark Mode - - - - - setTheme("light")} - > - {theme === "light" ? ( - <> - - Light - - ) : ( - Light - )} - - setTheme("dark")} - > - {theme === "dark" ? ( - <> - - Dark - - ) : ( - Dark - )} - - setTheme("system")} - > - {theme === "system" ? ( - <> - - System - - ) : ( - System - )} - - - - - - - - Theme - - - - - {colorSchemes.map((scheme) => ( - setColorScheme(scheme)} - > - {scheme === colorScheme ? ( - <> - - {friendlyColorSchemeName(scheme)} - - ) : ( - - {friendlyColorSchemeName(scheme)} - - )} - - ))} - - - - - - Help - - - + + + + +
+ +
+
+ + +

Settings

+
+
+
+
+ +
+ System + + + + + System metrics + + + + + + System logs + + + + + Configuration + + + + + + + Settings + + + + + + Configuration editor + + + + Appearance + + + + - - Documentation - - - - + Dark Mode + + + + + setTheme("light")} + > + {theme === "light" ? ( + <> + + Light + + ) : ( + Light + )} + + setTheme("dark")} + > + {theme === "dark" ? ( + <> + + Dark + + ) : ( + Dark + )} + + setTheme("system")} + > + {theme === "system" ? ( + <> + + System + + ) : ( + System + )} + + + + + + - - GitHub - - - + + Theme + + + + + {colorSchemes.map((scheme) => ( + setColorScheme(scheme)} + > + {scheme === colorScheme ? ( + <> + + {friendlyColorSchemeName(scheme)} + + ) : ( + + {friendlyColorSchemeName(scheme)} + + )} + + ))} + + + + + + Help + + + setRestartDialogOpen(true)} > - - Restart Frigate + + Documentation -
- - -
+ + + + + GitHub + + + + setRestartDialogOpen(true)} + > + + Restart Frigate + +
+ + {restartDialogOpen && (