Bookmark fix

This commit is contained in:
Sean Edmunds
2025-01-17 16:22:14 -06:00
parent 2fa9fa68ea
commit 85f6c2ec56

View File

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