diff --git a/src/components/ThemeSettings/ThemesTab.tsx b/src/components/ThemeSettings/ThemesTab.tsx index 84017e27..d5f054fe 100644 --- a/src/components/ThemeSettings/ThemesTab.tsx +++ b/src/components/ThemeSettings/ThemesTab.tsx @@ -106,7 +106,7 @@ function Validators({ themeLinks }: { themeLinks: string[]; }) { ); } -interface BDThemeCardProps { +interface OtherThemeCardProps { theme: UserThemeHeader; enabled: boolean; onChange: (enabled: boolean) => void; @@ -156,7 +156,7 @@ function UserCSSThemeCard({ theme, enabled, onChange, onDelete }: UserCSSCardPro ); } -function BDThemeCard({ theme, enabled, onChange, onDelete }: BDThemeCardProps) { +function OtherThemeCard({ theme, enabled, onChange, onDelete }: OtherThemeCardProps) { return ( {userThemes?.map(({ type, header: theme }: ThemeHeader) => ( - type === "bd" ? ( - onLocalThemeChange(theme.fileName, enabled)} diff --git a/src/utils/themes/index.ts b/src/utils/themes/index.ts index 73b4cb86..37dcd53e 100644 --- a/src/utils/themes/index.ts +++ b/src/utils/themes/index.ts @@ -9,7 +9,7 @@ import type { UserstyleHeader } from "usercss-meta"; import type { UserThemeHeader } from "./bd"; export type ThemeHeader = { - type: "bd"; + type: "other"; header: UserThemeHeader; } | { type: "usercss";