From f2da8e47f3f9fb437bfb5481fa7eaa19eecbe6ee Mon Sep 17 00:00:00 2001 From: Yashvardhan Jagnani Date: Tue, 25 Jun 2024 13:06:19 +0530 Subject: [PATCH] chore: dead theme config --- src/utils/store/GoldRush.tsx | 16 +--------------- src/utils/types/store.types.ts | 1 - 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/utils/store/GoldRush.tsx b/src/utils/store/GoldRush.tsx index e8460ef8..96713a31 100644 --- a/src/utils/store/GoldRush.tsx +++ b/src/utils/store/GoldRush.tsx @@ -48,7 +48,6 @@ export const GoldRushProvider: React.FC = ({ }, }, mode: "light", - style: "classic", }), [] ); @@ -78,7 +77,7 @@ export const GoldRushProvider: React.FC = ({ useEffect(() => { localStorage.setItem("goldrush_theme", JSON.stringify(theme)); - const { borderRadius, colors, mode, style } = theme; + const { borderRadius, colors, mode } = theme; const body = document.body; const root = document.documentElement; @@ -96,19 +95,6 @@ export const GoldRushProvider: React.FC = ({ } } - switch (style) { - case "neo": { - body.classList.add("neo"); - root.classList.add("neo"); - break; - } - case "classic": { - body.classList.remove("neo"); - root.classList.remove("neo"); - break; - } - } - root.style.setProperty("--grk-border-radius", `${borderRadius}px`); Object.entries(colors).forEach(([_mode, _types]) => { diff --git a/src/utils/types/store.types.ts b/src/utils/types/store.types.ts index 858f0553..2dfd5b7b 100644 --- a/src/utils/types/store.types.ts +++ b/src/utils/types/store.types.ts @@ -42,7 +42,6 @@ export type GoldRushThemeMode = "dark" | "light"; export interface GoldRushThemeType { mode: GoldRushThemeMode; - style: "classic" | "neo"; borderRadius: number; colors: Partial<{ dark: Partial;