Updated header
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user