fix: remove 'no related content found' message on search page; refs #180

This commit is contained in:
Hossein Mehrabi 2023-09-05 22:37:16 +03:30
parent 124e70a968
commit d6cc4becd0
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 8 additions and 15 deletions

View File

@ -142,21 +142,14 @@ export const SearchResultsListView = (props: Props) => {
</PostsList>
<GridItem xs={{ cols: 0 }} md={{ cols: 1 }} cols={1} />
<BlocksList xs={{ cols: 8 }} md={{ cols: 3 }} lg={{ cols: 4 }} cols={4}>
{!isMobile &&
(renderBlocks.length > 0 ? (
<BlockListSticky>
<SearchResultsListHeader
title={copyConfigs.search.labels.relatedContent}
/>
<SearchResultListBlocks blocks={renderBlocks} />
</BlockListSticky>
) : (
!busy && (
<Typography variant={'subtitle2'} genericFontFamily={'serif'}>
No related content found
</Typography>
)
))}
{!isMobile && (
<BlockListSticky>
<SearchResultsListHeader
title={copyConfigs.search.labels.relatedContent}
/>
<SearchResultListBlocks blocks={renderBlocks} />
</BlockListSticky>
)}
</BlocksList>
</Container>
)