Skip to content

Commit 874cad4

Browse files
committed
add dark/light mode
1 parent 278ff39 commit 874cad4

File tree

15 files changed

+110
-435
lines changed

15 files changed

+110
-435
lines changed

app/layout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ import { Suspense } from "react";
22
import { AppHeader, AppFooter, AppMetadata } from "components";
33
import Loading from "./loading";
44
import "styles/globals.css";
5+
import { ThemeContext } from "context";
56

67
export const metadata = { ...AppMetadata };
78

89
export default function RootLayout({ children }) {
910
return (
1011
<html lang="en">
1112
<body>
12-
<div className="theme">
13+
<ThemeContext>
1314
<AppHeader />
1415
<Suspense fallback={<Loading />}>{children}</Suspense>
1516
<AppFooter />
16-
</div>
17+
</ThemeContext>
1718
</body>
1819
</html>
1920
);

0 commit comments

Comments
 (0)