fix profile menu button skel delay

This commit is contained in:
zeppi 2022-04-16 22:27:57 -04:00
parent 801e8375c8
commit 92928c2143
2 changed files with 14 additions and 21 deletions

View file

@ -165,11 +165,9 @@ const Header = (props: Props) => {
'header--minimal': authHeader, 'header--minimal': authHeader,
'header--mac': IS_MAC, 'header--mac': IS_MAC,
})} })}
// @if TARGET='app'
onDoubleClick={(e) => { onDoubleClick={(e) => {
remote.getCurrentWindow().maximize(); remote.getCurrentWindow().maximize();
}} }}
// @endif
> >
<div className="card__actions--between header__contents"> <div className="card__actions--between header__contents">
{!authHeader && canBackout ? ( {!authHeader && canBackout ? (

View file

@ -8,7 +8,6 @@ import classnames from 'classnames';
import HeaderMenuLink from 'component/common/header-menu-link'; import HeaderMenuLink from 'component/common/header-menu-link';
import Icon from 'component/common/icon'; import Icon from 'component/common/icon';
import React from 'react'; import React from 'react';
import Skeleton from '@mui/material/Skeleton';
type HeaderMenuButtonProps = { type HeaderMenuButtonProps = {
activeChannelClaim: ?ChannelClaim, activeChannelClaim: ?ChannelClaim,
@ -25,9 +24,6 @@ export default function HeaderProfileMenuButton(props: HeaderMenuButtonProps) {
return ( return (
<div className="header__buttons"> <div className="header__buttons">
<Menu> <Menu>
{activeChannelUrl === undefined ? (
<Skeleton variant="circular" animation="wave" className="header__navigationItem--iconSkeleton" />
) : (
<MenuButton <MenuButton
aria-label={__('Your account')} aria-label={__('Your account')}
title={__('Your account')} title={__('Your account')}
@ -42,7 +38,6 @@ export default function HeaderProfileMenuButton(props: HeaderMenuButtonProps) {
<Icon size={18} icon={ICONS.ACCOUNT} aria-hidden /> <Icon size={18} icon={ICONS.ACCOUNT} aria-hidden />
)} )}
</MenuButton> </MenuButton>
)}
<MenuList className="menu__list--header"> <MenuList className="menu__list--header">
<HeaderMenuLink page={PAGES.UPLOADS} icon={ICONS.PUBLISH} name={__('Uploads')} /> <HeaderMenuLink page={PAGES.UPLOADS} icon={ICONS.PUBLISH} name={__('Uploads')} />