Client:Components:NavMenu Disabled header bar on public preview
This commit is contained in:
parent
9c9e8f4ad0
commit
d113b43a2e
@ -45,6 +45,7 @@ import { inject, observer } from "mobx-react";
|
|||||||
import PreparationPortalDialog from "../dialogs/PreparationPortalDialog";
|
import PreparationPortalDialog from "../dialogs/PreparationPortalDialog";
|
||||||
import { Base } from "@docspace/shared/themes";
|
import { Base } from "@docspace/shared/themes";
|
||||||
import { DeviceType } from "@docspace/shared/enums";
|
import { DeviceType } from "@docspace/shared/enums";
|
||||||
|
import { isPublicPreview } from "@docspace/shared/utils/common";
|
||||||
|
|
||||||
const StyledContainer = styled.header`
|
const StyledContainer = styled.header`
|
||||||
height: ${(props) => props.theme.header.height};
|
height: ${(props) => props.theme.header.height};
|
||||||
@ -158,7 +159,7 @@ const NavMenu = (props) => {
|
|||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const isAsideAvailable = !!asideContent;
|
const isAsideAvailable = !!asideContent;
|
||||||
const hideHeader = !showHeader && isFrame;
|
const hideHeader = (!showHeader && isFrame) || isPublicPreview();
|
||||||
|
|
||||||
if (currentDeviceType !== DeviceType.mobile || !isMobile() || hideHeader)
|
if (currentDeviceType !== DeviceType.mobile || !isMobile() || hideHeader)
|
||||||
return <></>;
|
return <></>;
|
||||||
|
Loading…
Reference in New Issue
Block a user