Fix display InfoPanel button (design issue)

This commit is contained in:
Alexey Safronov 2024-02-08 15:02:18 +04:00
parent 5ac4b3fa3a
commit 3aed1f74f4

View File

@ -67,11 +67,6 @@ const Navigation = ({
const isDesktop = currentDeviceType === DeviceType.desktop;
const infoPanelIsVisible = React.useMemo(
() => isDesktop && (!isEmptyPage || (isEmptyPage && isRoom)),
[isDesktop, isEmptyPage, isRoom],
);
const toggleDropBox = useCallback(() => {
if (navigationItems?.length === 0) return;
if (isRootFolder) return setIsOpen(false);
@ -263,7 +258,7 @@ const Navigation = ({
isEmptyPage={isEmptyPage}
/>
</StyledContainer>
{infoPanelIsVisible && !hideInfoPanel && (
{isDesktop && !hideInfoPanel && (
<ToggleInfoPanelButton
id="info-panel-toggle--open"
isRootFolder={isRootFolder}
@ -279,3 +274,4 @@ const Navigation = ({
};
export default React.memo(Navigation);