From 5d7a1cce2da8c80829f52cbbb35c49f58e22d4d1 Mon Sep 17 00:00:00 2001 From: Oliver Gwyther Date: Fri, 15 Aug 2025 23:46:28 +0100 Subject: [PATCH] Refactor theme handling in ScriptDetail and SubmitScript components to use resolvedTheme instead of theme for improved consistency in dark mode styling. --- src/pages/ScriptDetail.tsx | 8 ++++---- src/pages/SubmitScript.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/ScriptDetail.tsx b/src/pages/ScriptDetail.tsx index b019187..6aa51e7 100644 --- a/src/pages/ScriptDetail.tsx +++ b/src/pages/ScriptDetail.tsx @@ -138,7 +138,7 @@ echo "Setting up Docker environment for $PROJECT_NAME..." export default function ScriptDetail() { const { scriptId } = useParams(); const { user } = useAuth(); - const { theme } = useTheme(); + const { resolvedTheme } = useTheme(); // API hooks const { data: script } = useScript(scriptId || ''); @@ -360,7 +360,7 @@ export default function ScriptDetail() {