feat: stable feed count

This commit is contained in:
DIYgod
2023-08-13 00:57:37 +01:00
parent bd965bc757
commit 3be5ef4311
3 changed files with 38 additions and 14 deletions
-3
View File
@@ -19,8 +19,6 @@ import { ExpandedNote } from "~/lib/types"
import type { FeedType, SearchType } from "~/models/home.model"
import { useGetFeed } from "~/queries/home"
import topics from "../../../data/topics.json"
export const HomeFeed = ({ type }: { type?: FeedType }) => {
const { t } = useTranslation("common")
const searchParams = useSearchParams()
@@ -53,7 +51,6 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
}
break
case "topic":
const info = topics.find((t) => t.name === params.topic)
feedConfig = {
type,
topic: params.topic,