diff --git a/web/src/components/Settings/PreferencesSection.tsx b/web/src/components/Settings/PreferencesSection.tsx index a24d7eeeb..df237e023 100644 --- a/web/src/components/Settings/PreferencesSection.tsx +++ b/web/src/components/Settings/PreferencesSection.tsx @@ -8,7 +8,6 @@ import { useTranslate } from "@/utils/i18n"; import { convertVisibilityFromString, convertVisibilityToString } from "@/utils/memo"; import LocaleSelect from "../LocaleSelect"; import ThemeSelect from "../ThemeSelect"; -import ThemeInfoCard from "../ThemeInfoCard"; import VisibilityIcon from "../VisibilityIcon"; import WebhookSection from "./WebhookSection"; @@ -55,8 +54,6 @@ const PreferencesSection = observer(() => { - -

{t("setting.preference")}

diff --git a/web/src/components/ThemeInfoCard.tsx b/web/src/components/ThemeInfoCard.tsx deleted file mode 100644 index a762c303b..000000000 --- a/web/src/components/ThemeInfoCard.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { observer } from "mobx-react-lite"; -import { Info } from "lucide-react"; -import { userStore, workspaceStore } from "@/store"; - -const ThemeInfoCard = observer(() => { - const userTheme = userStore.state.userGeneralSetting?.theme; - const workspaceTheme = workspaceStore.state.theme || "default"; - const effectiveTheme = userTheme || workspaceTheme; - - return ( -
-
- -
-

Theme System

-
-

Current effective theme: {effectiveTheme}

-

Workspace default: {workspaceTheme}

- {userTheme && ( -

Your preference: {userTheme}

- )} -

- Your personal theme preference overrides the workspace default. - If you haven't set a personal preference, the workspace default is used. -

-
-
-
-
- ); -}); - -export default ThemeInfoCard; \ No newline at end of file