diff --git a/ui/component/headerProfileMenuButton/view.jsx b/ui/component/headerProfileMenuButton/view.jsx index 1a3241edb..fab35826a 100644 --- a/ui/component/headerProfileMenuButton/view.jsx +++ b/ui/component/headerProfileMenuButton/view.jsx @@ -1,6 +1,9 @@ // @flow import 'scss/component/_header.scss'; +// $FlowFixMe +import { Global } from '@emotion/react'; + import { Menu as MuiMenu, MenuItem as MuiMenuItem } from '@mui/material'; import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; @@ -26,93 +29,97 @@ export default function HeaderProfileMenuButton(props: HeaderMenuButtonProps) { const [anchorEl, setAnchorEl] = React.useState(null); const open = Boolean(anchorEl); - const handleClick = (event) => { - setAnchorEl(!anchorEl ? event.currentTarget : null); - }; - const handleClose = () => { - setAnchorEl(null); - }; + const handleClick = (event) => setAnchorEl(!anchorEl ? event.currentTarget : null); + const handleClose = () => setAnchorEl(null); const activeChannelUrl = activeChannelClaim && activeChannelClaim.permanent_url; // activeChannel will be: undefined = fetching, null = nothing, or { channel claim } const noActiveChannel = activeChannelUrl === null; const pendingChannelFetch = !noActiveChannel && myChannelClaimIds === undefined; - return ( -