Skip to content

Commit

Permalink
Fix rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed May 18, 2024
1 parent d2180ce commit 3052fbc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
}}
>
<Box>
Expand Down
1 change: 0 additions & 1 deletion src/theme/Navbar/ColorModeToggle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function NavbarColorModeToggle({ className }) {
if (disabled) {
return null;
}

return (
<Box>
<IconButton
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { get, set } from "../components/storage";

// Default implementation, that you can customize
export default function Root({ children }) {
const [mode, setMode] = useState(get("theme") || "light");
const [mode, setMode] = useState("light");
const theme = useMemo(() => makeTheme(mode), [mode]);
useEffect(() => {
setMode(get("theme"));
Expand Down

0 comments on commit 3052fbc

Please sign in to comment.