From 92928c2143c31cf34a99c9d70231cc9b8b7e2193 Mon Sep 17 00:00:00 2001 From: zeppi Date: Sat, 16 Apr 2022 22:27:57 -0400 Subject: [PATCH] fix profile menu button skel delay --- ui/component/header/view.jsx | 2 -- ui/component/headerProfileMenuButton/view.jsx | 33 ++++++++----------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index 2dfa46524..2a885589e 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -165,11 +165,9 @@ const Header = (props: Props) => { 'header--minimal': authHeader, 'header--mac': IS_MAC, })} - // @if TARGET='app' onDoubleClick={(e) => { remote.getCurrentWindow().maximize(); }} - // @endif >
{!authHeader && canBackout ? ( diff --git a/ui/component/headerProfileMenuButton/view.jsx b/ui/component/headerProfileMenuButton/view.jsx index 297af98a5..b9144e77a 100644 --- a/ui/component/headerProfileMenuButton/view.jsx +++ b/ui/component/headerProfileMenuButton/view.jsx @@ -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,24 +24,20 @@ export default function HeaderProfileMenuButton(props: HeaderMenuButtonProps) { return (
- {activeChannelUrl === undefined ? ( - - ) : ( - - {activeChannelUrl ? ( - - ) : ( - - )} - - )} + + {activeChannelUrl ? ( + + ) : ( + + )} +