From 57d610779b7b9c35f7bc1a20f34edfa1ca625af6 Mon Sep 17 00:00:00 2001 From: qt coder Date: Sun, 27 Jun 2021 18:45:48 +0800 Subject: [PATCH] Deleted old navbar --- components/Navbar.js | 50 -------------------------------------------- pages/_app.js | 1 - 2 files changed, 51 deletions(-) delete mode 100644 components/Navbar.js diff --git a/components/Navbar.js b/components/Navbar.js deleted file mode 100644 index 0ec157c..0000000 --- a/components/Navbar.js +++ /dev/null @@ -1,50 +0,0 @@ -import React from 'react'; -import { makeStyles } from '@material-ui/core/styles'; -import AppBar from '@material-ui/core/AppBar'; -import Toolbar from '@material-ui/core/Toolbar'; -import Typography from '@material-ui/core/Typography'; -import Button from '@material-ui/core/Button'; -import IconButton from '@material-ui/core/IconButton'; -import MenuIcon from '@material-ui/icons/Menu'; -import Link from 'next/link' -import AuthButton from './AuthButton' -import { useSession } from 'next-auth/client' - -const useStyles = makeStyles((theme) => ({ - root: { - flexGrow: 1, - }, - menuButton: { - marginRight: theme.spacing(2), - }, - title: { - flexGrow: 1, - }, -})); - -export default function ButtonAppBar() { - const [session, loading] = useSession() - const classes = useStyles(); - - return ( -
- - - - - - - - Cath.exe - - - {session && } - - {session && } - - -
- ); -} \ No newline at end of file diff --git a/pages/_app.js b/pages/_app.js index 83d9337..3fbd27a 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -1,5 +1,4 @@ import '../styles/globals.css' -import Navbar from '../components/Navbar' import Head from 'next/head' import { Provider } from 'next-auth/client' import { ChakraProvider } from "@chakra-ui/react"