From 00a043683510a42bf52df311d9da78c496371b58 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Fri, 15 Mar 2024 17:58:34 +0300 Subject: [PATCH] cleanup code --- src/components/AuthorsList/AuthorsList.tsx | 9 +-------- src/components/Feed/Beside.tsx | 8 +------- src/components/Views/AllTopics/AllTopics.tsx | 6 ------ 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/components/AuthorsList/AuthorsList.tsx b/src/components/AuthorsList/AuthorsList.tsx index ccde9a92..ab48bae5 100644 --- a/src/components/AuthorsList/AuthorsList.tsx +++ b/src/components/AuthorsList/AuthorsList.tsx @@ -21,7 +21,6 @@ const PAGE_SIZE = 20 export const AuthorsList = (props: Props) => { const { t } = useLocalize() - const { isOwnerSubscribed } = useFollowing() const { authorsByShouts, authorsByFollowers } = useAuthorsStore() const [loading, setLoading] = createSignal(false) const [currentPage, setCurrentPage] = createSignal({ shouts: 0, followers: 0 }) @@ -83,13 +82,7 @@ export const AuthorsList = (props: Props) => { {(author) => (
- +
)} diff --git a/src/components/Feed/Beside.tsx b/src/components/Feed/Beside.tsx index 87dc462e..06a3c3e2 100644 --- a/src/components/Feed/Beside.tsx +++ b/src/components/Feed/Beside.tsx @@ -30,7 +30,6 @@ type Props = { export const Beside = (props: Props) => { const { t } = useLocalize() - const { isOwnerSubscribed } = useFollowing() return ( 0}> @@ -86,12 +85,7 @@ export const Beside = (props: Props) => { /> - + { return keys }) - const { isOwnerSubscribed } = useFollowing() - const showMore = () => setLimit((oldLimit) => oldLimit + PAGE_SIZE) const [searchQuery, setSearchQuery] = createSignal('') const filteredResults = createMemo(() => { @@ -190,10 +188,6 @@ export const AllTopics = (props: Props) => { <> 0, - value: isOwnerSubscribed(topic.slug), - }} showStat={true} />