Drag and drop bookmark settings

This commit is contained in:
Sean Edmunds
2025-03-26 16:36:14 -05:00
parent 4aacf06b5c
commit ed27956d01
9 changed files with 352 additions and 62 deletions

View File

@@ -50,22 +50,24 @@ function Links({ contentType }: any) {
gridTemplateRows: 'auto',
}}
>
{groups.map((category: any) => {
if (
contentType.includes(category.filterName) ||
contentType.includes('All')
) {
return (
<LinkGroups
key={category.categoryName}
category={category.categoryName}
links={bookmarkData.filter(
(bookmark: any) => bookmark.category === category.categoryName,
)}
/>
);
}
})}
{groups
.sort((a: any, b: any) => (a.categoryIndex > b.categoryIndex ? 1 : -1))
.map((category: any) => {
if (
contentType.includes(category.filterName) ||
contentType.includes('All')
) {
return (
<LinkGroups
key={category.categoryName}
category={category.categoryName}
links={bookmarkData.filter(
(bookmark: any) => bookmark.category === category.categoryName,
)}
/>
);
}
})}
</Stack>
</Stack>
)}