From 3052fbcf0e54fed03839cbbba0f5f3a3d0b00bd7 Mon Sep 17 00:00:00 2001 From: spaaaacccee Date: Sun, 19 May 2024 04:52:06 +1000 Subject: [PATCH] Fix rendering issue --- src/pages/index.tsx | 4 ---- src/theme/Navbar/ColorModeToggle/index.js | 1 - src/theme/Root.js | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b9963b5..ddb3c1b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -51,10 +51,6 @@ function Content() { backgroundSize: "100vw 200vh", backgroundPosition: "50% 0vh", backgroundRepeat: "no-repeat", - transition: (t) => - t.transitions.create("background-color", { - duration: t.transitions.duration.complex, - }), }} > diff --git a/src/theme/Navbar/ColorModeToggle/index.js b/src/theme/Navbar/ColorModeToggle/index.js index 1256158..48dfb6e 100644 --- a/src/theme/Navbar/ColorModeToggle/index.js +++ b/src/theme/Navbar/ColorModeToggle/index.js @@ -10,7 +10,6 @@ export default function NavbarColorModeToggle({ className }) { if (disabled) { return null; } - return ( makeTheme(mode), [mode]); useEffect(() => { setMode(get("theme"));