-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: redirect to dashboard when loggedin
- Loading branch information
1 parent
1b929f8
commit 8dd66f8
Showing
3 changed files
with
53 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
import React from 'react'; | ||
import { Container } from 'react-bootstrap'; | ||
'use client' | ||
|
||
export default function Layout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<div className="bg-light dark:bg-dark min-vh-100 d-flex flex-row align-items-center"> | ||
<Container> | ||
{children} | ||
</Container> | ||
</div> | ||
) | ||
import React from 'react' | ||
import { Container } from 'react-bootstrap' | ||
import { SessionProvider } from 'next-auth/react' | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<div className="bg-light dark:bg-dark min-vh-100 d-flex flex-row align-items-center"> | ||
<Container> | ||
<SessionProvider>{children}</SessionProvider>{' '} | ||
</Container> | ||
</div> | ||
) | ||
} |
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