diff --git a/web/ui/mantine-ui/src/components/ThemeSelector.tsx b/web/ui/mantine-ui/src/components/ThemeSelector.tsx index a7f5d1dcaa..964d491a04 100644 --- a/web/ui/mantine-ui/src/components/ThemeSelector.tsx +++ b/web/ui/mantine-ui/src/components/ThemeSelector.tsx @@ -1,14 +1,8 @@ +import { useMantineColorScheme, rem, ActionIcon } from "@mantine/core"; import { - useMantineColorScheme, - SegmentedControl, - rem, - MantineColorScheme, - Tooltip, -} from "@mantine/core"; -import { + IconBrightnessFilled, IconMoonFilled, IconSunFilled, - IconUserFilled, } from "@tabler/icons-react"; import { FC } from "react"; @@ -20,45 +14,28 @@ export const ThemeSelector: FC = () => { }; return ( - setColorScheme(v as MantineColorScheme)} - data={[ - { - value: "light", - label: ( - - - - ), - }, - { - value: "dark", - label: ( - - - - ), - }, - { - value: "auto", - label: ( - - - - ), - }, - ]} - /> + + setColorScheme( + colorScheme === "light" + ? "dark" + : colorScheme === "dark" + ? "auto" + : "light" + ) + } + > + {colorScheme === "light" ? ( + + ) : colorScheme === "dark" ? ( + + ) : ( + + )} + ); };