diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index 26a65ccf5f..16efabf10f 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -404,7 +404,6 @@ export function ProfileGrid({ profiles: {actor: bsky.profile.AnyProfileView; recId?: number}[] totalProfileCount?: number error: Error | null - dismissingDids?: Set viewContext: 'profile' | 'profileHeader' | 'feed' onDismiss?: (did: string) => void isVisible?: boolean diff --git a/src/components/ProgressGuide/FollowDialog.tsx b/src/components/ProgressGuide/FollowDialog.tsx index ead20209e6..77d8a54fb9 100644 --- a/src/components/ProgressGuide/FollowDialog.tsx +++ b/src/components/ProgressGuide/FollowDialog.tsx @@ -208,6 +208,15 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) { } } + if ( + hasSearchText && + !isFetchingSearchResults && + !_items.length && + !isSearchResultsError + ) { + _items.push({type: 'empty', key: 'empty', message: _(msg`No results`)}) + } + return _items }, [ _, @@ -220,17 +229,9 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) { currentAccount?.did, hasSearchText, resultsKey, + isSearchResultsError, ]) - if ( - searchText && - !isFetchingSearchResults && - !items.length && - !isSearchResultsError - ) { - items.push({type: 'empty', key: 'empty', message: _(msg`No results`)}) - } - const renderItems = useCallback( ({item, index}: {item: Item; index: number}) => { switch (item.type) { @@ -284,10 +285,13 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) { } } }, - ).current - const viewabilityConfig = useRef({ - itemVisiblePercentThreshold: 50, - }).current + ) + const viewabilityConfig = useMemo( + () => ({ + itemVisiblePercentThreshold: 50, + }), + [], + ) const onSelectTab = useCallback( (interest: string) => {