From baa18484ca6ce949fc205e4324927e0f6f081b61 Mon Sep 17 00:00:00 2001 From: code002lover Date: Tue, 9 Dec 2025 13:55:12 +0100 Subject: [PATCH] always have shaderbackground in the bg --- frontend/src/App.tsx | 5 +---- frontend/src/ShaderBackground.tsx | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index feb681e..e8e2643 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -17,15 +17,12 @@ function App() { localStorage.getItem("token") || "" ); const [theme, setTheme] = useState("default"); - const [isShaderTheme, setIsShaderTheme] = useState(false); useEffect(() => { if (theme !== "default") { document.body.classList.add("shader-theme"); - setIsShaderTheme(true); } else { document.body.classList.remove("shader-theme"); - setIsShaderTheme(false); } }, [theme]); @@ -88,7 +85,7 @@ function App() { - {isShaderTheme && } + } /> } /> diff --git a/frontend/src/ShaderBackground.tsx b/frontend/src/ShaderBackground.tsx index 7c80954..6b33ff2 100644 --- a/frontend/src/ShaderBackground.tsx +++ b/frontend/src/ShaderBackground.tsx @@ -154,7 +154,6 @@ export const ShaderBackground: React.FC = ({ shader_code = CLOUDS_SHADER_CODE; break; default: - console.error("Unknown shader theme:", theme); return; }