From 23bce4456d48fba90645310780c5ab399b86c8ac Mon Sep 17 00:00:00 2001 From: Qing <7880675+devrsi0n@users.noreply.github.com> Date: Sat, 26 Oct 2024 17:09:14 +0800 Subject: [PATCH] fix: theme storage key --- apps/main/src/pages/_app.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/main/src/pages/_app.tsx b/apps/main/src/pages/_app.tsx index ae3ad927..d2d40d24 100644 --- a/apps/main/src/pages/_app.tsx +++ b/apps/main/src/pages/_app.tsx @@ -32,7 +32,7 @@ const App = trpc.withTRPC(function App({ document.body.classList.add(inter.variable); loadFlock(); }, []); - + const isWidget = !!(pageProps as CommonWidgetProps).isWidget; return (
@@ -43,8 +43,8 @@ const App = trpc.withTRPC(function App({ attribute="class" // Widget and app themes are different storageKey={ - (pageProps as CommonWidgetProps).isWidget - ? 'chirpy.widget.theme' + isWidget + ? `chirpy.widget.theme_${pageProps.projectId}` : 'chirpy.theme' } >