Updated header

This commit is contained in:
Ben Elferink
2021-09-29 11:03:56 +03:00
parent 8de38c6536
commit ebae7d478e
2 changed files with 20 additions and 8 deletions

View File

@@ -1,5 +1,13 @@
import {Fragment, useState} from 'react'
import {IconButton, Avatar, Popover, List, ListSubheader, ListItemButton} from '@mui/material'
import {
AppBar,
IconButton,
Avatar,
Popover,
List,
ListSubheader,
ListItemButton,
} from '@mui/material'
import OnlineIndicator from './OnlineIndicator'
import AuthModal from './AuthModal'
import {useAuth} from '../contexts/AuthContext'
@@ -35,7 +43,7 @@ export default function Header() {
}
return (
<header className='header'>
<AppBar className='header' position='static'>
<h1>Web App</h1>
<IconButton onClick={openPopover}>
@@ -72,6 +80,6 @@ export default function Header() {
isRegisterMode={register}
toggleRegister={() => setRegister((prev) => !prev)}
/>
</header>
</AppBar>
)
}

View File

@@ -17,11 +17,15 @@ body {
}
.header {
width: 100%;
padding: 0 1rem;
display: flex;
align-items: center;
justify-content: space-between;
width: 100% !important;
padding: 0 1rem !important;
background-color: whitesmoke !important;
color: black !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: space-between !important;
}
.error {