chore: use new components

This commit is contained in:
Sean Norwood 2022-04-03 20:04:28 +00:00
parent 73106fc74a
commit 2c4ab1bb42

View File

@ -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} />