Skip to content

Commit

Permalink
fix deployment pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fahimmehraj committed Feb 6, 2024
1 parent 6de7926 commit 6ec1b45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/components/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { SessionProvider } from "next-auth/react";
import React from "react";

type Props = {
session: Session;
session?: Session;
};

export const Providers: React.FC<React.PropsWithChildren<Props>> = ({ children, session }) => {
return <SessionProvider session={session}>{children}</SessionProvider>;
};
};
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const metadata: Metadata = {
description: "Bronx Science's 10th Annual Hackathon",
};

export default function RootLayout({ children, session }: { children: React.ReactNode; session: Session }) {
export default function RootLayout({ children, session }: { children: React.ReactNode; session?: Session }) {
return (
<html lang="en">
{/* Puting the Navbar here allows it to be replicated across all pages, including
Expand Down

0 comments on commit 6ec1b45

Please sign in to comment.