-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a30b4cf
commit 381a4e3
Showing
31 changed files
with
431 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { GET, POST } from "../../../auth"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
import type { Metadata } from "next"; | ||
import { type ReactNode } from "react"; | ||
import { SessionProvider } from "next-auth/react"; | ||
import "@fontsource/poppins"; | ||
import "@fontsource/poppins/600.css"; | ||
import "@fontsource/poppins/700.css"; | ||
|
||
import { Layout } from "../components/common/Layout"; | ||
import "../styles/globals.css"; | ||
import { Providers } from "./providers"; | ||
import { auth } from "./auth"; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Welcome to API Platform!', | ||
} | ||
export default async function RootLayout({ children }: { children: ReactNode }) { | ||
const session = await auth(); | ||
|
||
export default async function MyApp({ children }: { children: ReactNode }) { | ||
return ( | ||
<Layout> | ||
{children} | ||
</Layout> | ||
<html lang="en"> | ||
<body> | ||
<SessionProvider session={session}> | ||
<Providers> | ||
<Layout> | ||
{children} | ||
</Layout> | ||
</Providers> | ||
</SessionProvider> | ||
</body> | ||
</html> | ||
); | ||
}; |
Oops, something went wrong.