[Perf] Middle Column / Pinned: Remove spinner in background (#2981)
This commit is contained in:
parent
ad9e1bb9a1
commit
180599f5d4
@ -105,12 +105,14 @@ const HeaderPinnedMessage: FC<OwnProps> = ({
|
||||
ariaLabel={lang('EventLogFilterPinnedMessages')}
|
||||
onClick={!shouldShowLoader ? onAllPinnedClick : undefined}
|
||||
>
|
||||
<Spinner
|
||||
color="blue"
|
||||
className={buildClassName(
|
||||
styles.loading, styles.pinListIcon, !shouldShowLoader && styles.pinListIconHidden,
|
||||
)}
|
||||
/>
|
||||
{isLoading && (
|
||||
<Spinner
|
||||
color="blue"
|
||||
className={buildClassName(
|
||||
styles.loading, styles.pinListIcon, !shouldShowLoader && styles.pinListIconHidden,
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
<i
|
||||
className={buildClassName(
|
||||
'icon-pin-list', styles.pinListIcon, shouldShowLoader && styles.pinListIconHidden,
|
||||
|
||||
@ -270,7 +270,7 @@ const MiddleHeader: FC<OwnProps & StateProps> = ({
|
||||
const {
|
||||
shouldRender: shouldRenderPinnedMessage,
|
||||
transitionClassNames: pinnedMessageClassNames,
|
||||
} = useShowTransition(Boolean(pinnedMessage));
|
||||
} = useShowTransition(Boolean(pinnedMessage), undefined, true);
|
||||
|
||||
const renderingPinnedMessage = useCurrentOrPrev(pinnedMessage, true);
|
||||
const renderingPinnedMessagesCount = useCurrentOrPrev(pinnedMessagesCount, true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user