diff --git a/public/assets/sprites/common.svg b/public/assets/sprites/common.svg index f81dfb3..d79a775 100644 --- a/public/assets/sprites/common.svg +++ b/public/assets/sprites/common.svg @@ -177,4 +177,14 @@ d='M13.928 7.5l-5.402 5.402-2.456-2.456' /> + + + + \ No newline at end of file diff --git a/src/shared/ui/icon/consts/sprite.ts b/src/shared/ui/icon/consts/sprite.ts index 2b85fc8..7e59643 100644 --- a/src/shared/ui/icon/consts/sprite.ts +++ b/src/shared/ui/icon/consts/sprite.ts @@ -14,4 +14,5 @@ export type IconName = | 'checkbox-circle_off' | 'checkbox-circle_on' | 'checkbox-square_on' - | 'checkbox-square_off'; + | 'checkbox-square_off' + | 'check_mint'; diff --git a/src/widgets/feed-main-list/ui/FeedMainList.tsx b/src/widgets/feed-main-list/ui/FeedMainList.tsx index db7f92c..92b693a 100644 --- a/src/widgets/feed-main-list/ui/FeedMainList.tsx +++ b/src/widgets/feed-main-list/ui/FeedMainList.tsx @@ -3,9 +3,12 @@ import { NetworkError, Observer } from '@/shared/ui'; import { useInfinityFeeds } from '../api'; import { Feed } from './Feed'; +import HiddenFeed from './HiddenFeed'; import { SkeletonFeedMainList } from './SkeletonFeedMainList'; import './FeedMainList.scss'; +const hiddenFeedId = 2; + export const FeedMainList = () => { const { feeds, @@ -30,9 +33,13 @@ export const FeedMainList = () => {
{feeds?.pages.map((pageData) => { - return pageData.data.feeds.map((feed) => ( - - )); + return pageData.data.feeds.map((feed) => + hiddenFeedId === feed.id ? ( + + ) : ( + + ), + ); })} {!isFetching && ( = ({ message }) => { + return ( +
+
+ +

{message}

+ +
+
+ ); +}; + +export default HiddenFeed;