diff --git a/front/src/components/StoriesPreview.tsx b/front/src/components/StoriesPreview.tsx index 24b8ffe..8871be0 100644 --- a/front/src/components/StoriesPreview.tsx +++ b/front/src/components/StoriesPreview.tsx @@ -1,12 +1,13 @@ import { Link } from 'react-router-dom' import { CSSProperties, useEffect, useMemo, useRef, useState } from 'react' +import { Button } from 'react-bootstrap' -import { UserCategory, userCategoriesInfos } from '../assets/userCategories' +import { UserCategory, composeUserCategoriesFilters, userCategoriesInfos } from '../assets/userCategories' import { Announcement } from '../api/announcement/types' import { categoryGraphics, categoryNames } from '../assets/category' +import { URLEncodeFilters } from '../utils/filters' import rightAngleIcon from '../assets/rightAngle.svg' -import { Button } from 'react-bootstrap' type StoriesPreviewProps = { announcements: Announcement[], @@ -113,8 +114,7 @@ function StoriesPreview({ announcements, category }: StoriesPreviewProps) { {useMemo(() => announcements.map((ann, i) => (