Update empty state for starter pack search (#11325)
This commit is contained in:
@@ -1216,11 +1216,6 @@
|
|||||||
"count": 1
|
"count": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"src/screens/StarterPack/Wizard/StepProfiles.tsx": {
|
|
||||||
"typescript/no-misused-promises": {
|
|
||||||
"count": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"src/screens/StarterPack/Wizard/index.tsx": {
|
"src/screens/StarterPack/Wizard/index.tsx": {
|
||||||
"typescript/no-floating-promises": {
|
"typescript/no-floating-promises": {
|
||||||
"count": 2
|
"count": 2
|
||||||
|
|||||||
@@ -87,7 +87,9 @@ export function StepProfiles({
|
|||||||
sideBorders={false}
|
sideBorders={false}
|
||||||
style={[a.flex_1]}
|
style={[a.flex_1]}
|
||||||
onEndReached={
|
onEndReached={
|
||||||
!query && !screenReaderEnabled ? () => fetchNextPage() : undefined
|
!query && !screenReaderEnabled
|
||||||
|
? () => void fetchNextPage()
|
||||||
|
: undefined
|
||||||
}
|
}
|
||||||
onEndReachedThreshold={IS_NATIVE ? 2 : 0.25}
|
onEndReachedThreshold={IS_NATIVE ? 2 : 0.25}
|
||||||
keyboardDismissMode="on-drag"
|
keyboardDismissMode="on-drag"
|
||||||
@@ -104,7 +106,11 @@ export function StepProfiles({
|
|||||||
a.mt_lg,
|
a.mt_lg,
|
||||||
a.leading_snug,
|
a.leading_snug,
|
||||||
]}>
|
]}>
|
||||||
<Trans>Nobody was found. Try searching for someone else.</Trans>
|
{query ? (
|
||||||
|
<Trans>
|
||||||
|
Nobody was found. Try searching for someone else.
|
||||||
|
</Trans>
|
||||||
|
) : null}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user