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--mac': IS_MAC,
})}
// @if TARGET='app'
onDoubleClick={(e) => {
remote.getCurrentWindow().maximize();
}}
// @endif
>
<div className="card__actions--between header__contents">
{!authHeader && canBackout ? (

View file

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