mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 18:00:17 +00:00
chore: use new components
This commit is contained in:
parent
73106fc74a
commit
2c4ab1bb42
@ -1,12 +1,9 @@
|
||||
import type { NextPage } from "next";
|
||||
import { signIn, signOut, useSession } from "next-auth/react";
|
||||
import dynamic from "next/dynamic";
|
||||
import Head from "next/head";
|
||||
import { Suspense } from "react";
|
||||
|
||||
const DynamicHeader = dynamic(() => import("../components/Header"), {
|
||||
suspense: true,
|
||||
});
|
||||
import { CustomHead } from "../components/CustomHead";
|
||||
import { DynamicHeader } from "../components/Header";
|
||||
|
||||
const SignInOutButton = ({ isSignedIn }: { isSignedIn: boolean }) => {
|
||||
if (isSignedIn) {
|
||||
@ -22,15 +19,9 @@ const Home: NextPage = () => {
|
||||
status,
|
||||
};
|
||||
|
||||
console.log(status);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Tube Archivist</title>
|
||||
<meta name="description" content="Generated by create next app" />
|
||||
<link rel="icon" href="/favicon/favicon.ico" />
|
||||
</Head>
|
||||
<CustomHead />
|
||||
|
||||
<Suspense fallback={<h1>Loading</h1>}>
|
||||
<DynamicHeader authData={authData} />
|
||||
|
Loading…
Reference in New Issue
Block a user