fix claude feedback
This commit is contained in:
@@ -404,7 +404,6 @@ export function ProfileGrid({
|
|||||||
profiles: {actor: bsky.profile.AnyProfileView; recId?: number}[]
|
profiles: {actor: bsky.profile.AnyProfileView; recId?: number}[]
|
||||||
totalProfileCount?: number
|
totalProfileCount?: number
|
||||||
error: Error | null
|
error: Error | null
|
||||||
dismissingDids?: Set<string>
|
|
||||||
viewContext: 'profile' | 'profileHeader' | 'feed'
|
viewContext: 'profile' | 'profileHeader' | 'feed'
|
||||||
onDismiss?: (did: string) => void
|
onDismiss?: (did: string) => void
|
||||||
isVisible?: boolean
|
isVisible?: boolean
|
||||||
|
|||||||
@@ -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
|
return _items
|
||||||
}, [
|
}, [
|
||||||
_,
|
_,
|
||||||
@@ -220,17 +229,9 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) {
|
|||||||
currentAccount?.did,
|
currentAccount?.did,
|
||||||
hasSearchText,
|
hasSearchText,
|
||||||
resultsKey,
|
resultsKey,
|
||||||
|
isSearchResultsError,
|
||||||
])
|
])
|
||||||
|
|
||||||
if (
|
|
||||||
searchText &&
|
|
||||||
!isFetchingSearchResults &&
|
|
||||||
!items.length &&
|
|
||||||
!isSearchResultsError
|
|
||||||
) {
|
|
||||||
items.push({type: 'empty', key: 'empty', message: _(msg`No results`)})
|
|
||||||
}
|
|
||||||
|
|
||||||
const renderItems = useCallback(
|
const renderItems = useCallback(
|
||||||
({item, index}: {item: Item; index: number}) => {
|
({item, index}: {item: Item; index: number}) => {
|
||||||
switch (item.type) {
|
switch (item.type) {
|
||||||
@@ -284,10 +285,13 @@ function DialogInner({guide}: {guide?: Follow10ProgressGuide}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
).current
|
)
|
||||||
const viewabilityConfig = useRef({
|
const viewabilityConfig = useMemo(
|
||||||
|
() => ({
|
||||||
itemVisiblePercentThreshold: 50,
|
itemVisiblePercentThreshold: 50,
|
||||||
}).current
|
}),
|
||||||
|
[],
|
||||||
|
)
|
||||||
|
|
||||||
const onSelectTab = useCallback(
|
const onSelectTab = useCallback(
|
||||||
(interest: string) => {
|
(interest: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user