Don't show "logout" when authenticated by Header

This commit is contained in:
Deluan
2021-06-18 19:06:41 -04:00
parent 31ea033880
commit cf553ce812
2 changed files with 4 additions and 5 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ import {
} from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import AccountCircle from '@material-ui/icons/AccountCircle'
import config from '../config'
const useStyles = makeStyles((theme) => ({
user: {},
@@ -99,7 +100,7 @@ const UserMenu = (props) => {
})
: null
)}
{logout}
{!config.auth && logout}
</MenuList>
</Popover>
</div>