From 0c16ef992e8f046b877bcc923bb6dd0ce294caa3 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 11 Apr 2025 22:51:30 +0800 Subject: [PATCH] fix(mobile): notification view styles --- .../src/modules/entry-list/EntryListContentArticle.tsx | 10 +++++----- .../src/modules/entry-list/EntryListSelector.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx b/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx index 2b29e1e58..4ffc3a3ad 100644 --- a/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx +++ b/apps/mobile/src/modules/entry-list/EntryListContentArticle.tsx @@ -1,4 +1,4 @@ -import { FeedViewType } from "@follow/constants" +import type { FeedViewType } from "@follow/constants" import type { ListRenderItemInfo } from "@shopify/flash-list" import type { ElementRef } from "react" import { forwardRef, useCallback, useMemo } from "react" @@ -16,8 +16,8 @@ import { EntryNormalItem } from "./templates/EntryNormalItem" export const EntryListContentArticle = forwardRef< ElementRef, - { entryIds: string[] | null; active?: boolean } ->(({ entryIds, active }, ref) => { + { entryIds: string[] | null; active?: boolean; view: FeedViewType } +>(({ entryIds, active, view }, ref) => { const playingAudioUrl = usePlayingUrl() const { fetchNextPage, isFetching, refetch, isRefetching, hasNextPage } = @@ -25,9 +25,9 @@ export const EntryListContentArticle = forwardRef< const renderItem = useCallback( ({ item: id, extraData }: ListRenderItemInfo) => ( - + ), - [], + [view], ) const ListFooterComponent = useMemo( diff --git a/apps/mobile/src/modules/entry-list/EntryListSelector.tsx b/apps/mobile/src/modules/entry-list/EntryListSelector.tsx index e880303fb..81268b7cc 100644 --- a/apps/mobile/src/modules/entry-list/EntryListSelector.tsx +++ b/apps/mobile/src/modules/entry-list/EntryListSelector.tsx @@ -69,7 +69,7 @@ function EntryListSelectorImpl({ entryIds, viewId, active = true }: EntryListSel } }, [isRefetching, ref]) - return + return } export const EntryListSelector = withErrorBoundary(