mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
login logout redirects, session, remove out of scope code
This commit is contained in:
@ -1,14 +1,20 @@
|
||||
import { useSession } from "next-auth/react";
|
||||
import type { ReactElement } from "react";
|
||||
import Layout from "../components/layout";
|
||||
import Settings from "../components/settings";
|
||||
import type { NextPageWithLayout } from "./_app";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
|
||||
const DocumentsPage: NextPageWithLayout = () => {
|
||||
const { data: session } = useSession();
|
||||
|
||||
console.log("Session:" + JSON.stringify(session));
|
||||
|
||||
const TeamPage: NextPageWithLayout = () => {
|
||||
return <>This is the documents page</>;
|
||||
};
|
||||
|
||||
TeamPage.getLayout = function getLayout(page: ReactElement) {
|
||||
DocumentsPage.getLayout = function getLayout(page: ReactElement) {
|
||||
return <Layout>{page}</Layout>;
|
||||
};
|
||||
|
||||
export default TeamPage;
|
||||
export default DocumentsPage;
|
||||
|
||||
Reference in New Issue
Block a user