Client:Components:NavMenu Disabled header bar on public preview

This commit is contained in:
Akmal Isomadinov 2024-04-29 13:40:04 +05:00
parent 9c9e8f4ad0
commit d113b43a2e

View File

@ -45,6 +45,7 @@ import { inject, observer } from "mobx-react";
import PreparationPortalDialog from "../dialogs/PreparationPortalDialog";
import { Base } from "@docspace/shared/themes";
import { DeviceType } from "@docspace/shared/enums";
import { isPublicPreview } from "@docspace/shared/utils/common";
const StyledContainer = styled.header`
height: ${(props) => props.theme.header.height};
@ -158,7 +159,7 @@ const NavMenu = (props) => {
} = props;
const isAsideAvailable = !!asideContent;
const hideHeader = !showHeader && isFrame;
const hideHeader = (!showHeader && isFrame) || isPublicPreview();
if (currentDeviceType !== DeviceType.mobile || !isMobile() || hideHeader)
return <></>;