From 092c25bb0cd6d0123114a9f9ca0512440d397308 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Thu, 20 Jun 2024 15:00:31 +0200 Subject: [PATCH] fix eslint --- src/components/board-buttons/board-buttons.tsx | 5 ++--- src/components/comment-media/comment-media.tsx | 1 - src/views/catalog/catalog.tsx | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/board-buttons/board-buttons.tsx b/src/components/board-buttons/board-buttons.tsx index 039745a8..a22e691b 100644 --- a/src/components/board-buttons/board-buttons.tsx +++ b/src/components/board-buttons/board-buttons.tsx @@ -2,13 +2,12 @@ import { useTranslation } from 'react-i18next'; import { Link, useLocation, useNavigate, useParams } from 'react-router-dom'; import { useAccountComment, useSubscribe } from '@plebbit/plebbit-react-hooks'; import { isAllView, isCatalogView, isPendingPostView, isPostPageView, isSubscriptionsView } from '../../lib/utils/view-utils'; -import useSortingStore from '../../stores/use-sorting-store'; +import useCatalogStyleStore from '../../stores/use-catalog-style-store'; import useFeedResetStore from '../../stores/use-feed-reset-store'; +import useSortingStore from '../../stores/use-sorting-store'; import useTimeFilter from '../../hooks/use-time-filter'; import CatalogFilters from '../../views/catalog/catalog-filters/'; import styles from './board-buttons.module.css'; -import useCatalogFiltersStore from '../../stores/use-catalog-filters-store'; -import useCatalogStyleStore from '../../stores/use-catalog-style-store'; interface BoardButtonsProps { address?: string | undefined; diff --git a/src/components/comment-media/comment-media.tsx b/src/components/comment-media/comment-media.tsx index ba6fd9b7..2519b551 100644 --- a/src/components/comment-media/comment-media.tsx +++ b/src/components/comment-media/comment-media.tsx @@ -7,7 +7,6 @@ import { getHostname } from '../../lib/utils/url-utils'; import useFetchGifFirstFrame from '../../hooks/use-fetch-gif-first-frame'; import useIsMobile from '../../hooks/use-is-mobile'; import Embed, { canEmbed } from '../embed'; -import _ from 'lodash'; interface MediaProps { commentMediaInfo?: CommentMediaInfo; diff --git a/src/views/catalog/catalog.tsx b/src/views/catalog/catalog.tsx index 21cd2713..70cfa249 100644 --- a/src/views/catalog/catalog.tsx +++ b/src/views/catalog/catalog.tsx @@ -68,7 +68,7 @@ const useFeedRows = (columnCount: number, feed: any, isFeedLoaded: boolean, subp }); } return _feed; - }, [feed, description, rules, address, isFeedLoaded, createdAt, title, shortAddress, avatarUrl, t, isInAllView, multisub]); + }, [feed, description, rules, address, isFeedLoaded, createdAt, title, shortAddress, avatarUrl, t, isInAllView, multisub, showTextOnlyThreads, suggested?.avatarUrl]); const rows = useMemo(() => { const rows = [];