Bookmark fix
This commit is contained in:
@@ -4,13 +4,13 @@ import { textClasses } from 'styles';
|
|||||||
import LinkGroups from './LinkGroups';
|
import LinkGroups from './LinkGroups';
|
||||||
|
|
||||||
function Links({ contentType }: any) {
|
function Links({ contentType }: any) {
|
||||||
const { isMobile, linksIsFetched, groupsIsFetched, groups, bookmarkData } =
|
const { isMobile, linksIsFetched, groupsIsFetched, groupData, bookmarkData } =
|
||||||
useCommonHooks();
|
useCommonHooks();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{groupsIsFetched &&
|
{groupsIsFetched &&
|
||||||
linksIsFetched &&
|
linksIsFetched &&
|
||||||
groups?.length > 0 &&
|
groupData?.length > 0 &&
|
||||||
contentType.length > 0 && (
|
contentType.length > 0 && (
|
||||||
<Stack id='links' style={{ gap: 0 }}>
|
<Stack id='links' style={{ gap: 0 }}>
|
||||||
<Text className={textClasses.sectionTitle} classNames={textClasses}>
|
<Text className={textClasses.sectionTitle} classNames={textClasses}>
|
||||||
@@ -26,7 +26,7 @@ function Links({ contentType }: any) {
|
|||||||
gridTemplateRows: 'auto',
|
gridTemplateRows: 'auto',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{groups.map((category: any) => {
|
{groupData.map((category: any) => {
|
||||||
if (
|
if (
|
||||||
contentType.includes(category.filterName) ||
|
contentType.includes(category.filterName) ||
|
||||||
contentType.includes('All')
|
contentType.includes('All')
|
||||||
@@ -36,7 +36,7 @@ function Links({ contentType }: any) {
|
|||||||
key={category}
|
key={category}
|
||||||
category={category.categoryName}
|
category={category.categoryName}
|
||||||
links={bookmarkData.filter(
|
links={bookmarkData.filter(
|
||||||
(bookmark: any) => bookmark.category === category,
|
(bookmark: any) => bookmark.category === category.categoryName,
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user