Updated header
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
import {Fragment, useState} from 'react'
|
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 OnlineIndicator from './OnlineIndicator'
|
||||||
import AuthModal from './AuthModal'
|
import AuthModal from './AuthModal'
|
||||||
import {useAuth} from '../contexts/AuthContext'
|
import {useAuth} from '../contexts/AuthContext'
|
||||||
@@ -35,7 +43,7 @@ export default function Header() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className='header'>
|
<AppBar className='header' position='static'>
|
||||||
<h1>Web App</h1>
|
<h1>Web App</h1>
|
||||||
|
|
||||||
<IconButton onClick={openPopover}>
|
<IconButton onClick={openPopover}>
|
||||||
@@ -72,6 +80,6 @@ export default function Header() {
|
|||||||
isRegisterMode={register}
|
isRegisterMode={register}
|
||||||
toggleRegister={() => setRegister((prev) => !prev)}
|
toggleRegister={() => setRegister((prev) => !prev)}
|
||||||
/>
|
/>
|
||||||
</header>
|
</AppBar>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,11 +17,15 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
padding: 0 1rem;
|
padding: 0 1rem !important;
|
||||||
display: flex;
|
background-color: whitesmoke !important;
|
||||||
align-items: center;
|
color: black !important;
|
||||||
justify-content: space-between;
|
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: row !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: space-between !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
|
|||||||
Reference in New Issue
Block a user