From 2c4ab1bb429cd8c1e44684cfa35bf11ba20300a6 Mon Sep 17 00:00:00 2001 From: Sean Norwood Date: Sun, 3 Apr 2022 20:04:28 +0000 Subject: [PATCH] chore: use new components --- tubearchivist/www/src/pages/index.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tubearchivist/www/src/pages/index.tsx b/tubearchivist/www/src/pages/index.tsx index 2a6381b..d2aedaa 100644 --- a/tubearchivist/www/src/pages/index.tsx +++ b/tubearchivist/www/src/pages/index.tsx @@ -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 ( <> - - Tube Archivist - - - + Loading}>