Deleted old navbar

This commit is contained in:
qt coder 2021-06-27 18:45:48 +08:00
parent 6e2722c8ab
commit 57d610779b
2 changed files with 0 additions and 51 deletions

View file

@ -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 (
<div className={classes.root}>
<AppBar position="static" color='primary' style={{
background: '#1F1B24'
}}>
<Toolbar>
<IconButton edge="start" className={classes.menuButton} color="inherit" aria-label="menu">
<MenuIcon />
</IconButton>
<Typography variant="h6" className={classes.title}>
<Link href='/'>
Cath.exe
</Link>
</Typography>
{session && <Button color="inherit">Stats</Button>}
<AuthButton/>
{session && <Link href='/controlpanel'><Button color="inherit">Control Panel</Button></Link>}
</Toolbar>
</AppBar>
</div>
);
}

View file

@ -1,5 +1,4 @@
import '../styles/globals.css' import '../styles/globals.css'
import Navbar from '../components/Navbar'
import Head from 'next/head' import Head from 'next/head'
import { Provider } from 'next-auth/client' import { Provider } from 'next-auth/client'
import { ChakraProvider } from "@chakra-ui/react" import { ChakraProvider } from "@chakra-ui/react"