Shared:Components:Selector: Hide bread crumbs on an empty screen
This commit is contained in:
parent
0eba3145e5
commit
e3451851e4
@ -361,7 +361,7 @@ const StyledNewEmptyScreen = styled.section`
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.empty-image {
|
.empty-image {
|
||||||
margin-top: 26px;
|
margin-top: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-header {
|
.empty-header {
|
||||||
|
@ -29,6 +29,7 @@ import React from "react";
|
|||||||
import InfiniteLoader from "react-window-infinite-loader";
|
import InfiniteLoader from "react-window-infinite-loader";
|
||||||
import { FixedSizeList as List } from "react-window";
|
import { FixedSizeList as List } from "react-window";
|
||||||
|
|
||||||
|
import { RoomsType } from "../../../enums";
|
||||||
import { Scrollbar } from "../../scrollbar";
|
import { Scrollbar } from "../../scrollbar";
|
||||||
import { Text } from "../../text";
|
import { Text } from "../../text";
|
||||||
|
|
||||||
@ -195,6 +196,11 @@ const Body = ({
|
|||||||
|
|
||||||
if (descriptionText) listHeight -= BODY_DESCRIPTION_TEXT_HEIGHT;
|
if (descriptionText) listHeight -= BODY_DESCRIPTION_TEXT_HEIGHT;
|
||||||
|
|
||||||
|
const isShareForm =
|
||||||
|
itemsCount === 0 &&
|
||||||
|
items?.[0]?.isRoomsOnly &&
|
||||||
|
items?.[0]?.createDefineRoomType === RoomsType.FormRoom;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledBody
|
<StyledBody
|
||||||
ref={bodyRef}
|
ref={bodyRef}
|
||||||
@ -211,7 +217,7 @@ const Body = ({
|
|||||||
withHeader={withHeader}
|
withHeader={withHeader}
|
||||||
withTabs={withTabs}
|
withTabs={withTabs}
|
||||||
>
|
>
|
||||||
{withBreadCrumbs ? (
|
{withBreadCrumbs && !isShareForm ? (
|
||||||
isBreadCrumbsLoading ? (
|
isBreadCrumbsLoading ? (
|
||||||
breadCrumbsLoader
|
breadCrumbsLoader
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
Reference in New Issue
Block a user