parent
f6f1fe2558
commit
a14c2ede39
|
@ -42,14 +42,20 @@ export const SearchResults = observer(({model}: {model: SearchUIModel}) => {
|
||||||
const PostResults = observer(({model}: {model: SearchUIModel}) => {
|
const PostResults = observer(({model}: {model: SearchUIModel}) => {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
if (model.isPostsLoading) {
|
if (model.isPostsLoading) {
|
||||||
return <PostFeedLoadingPlaceholder />
|
return (
|
||||||
|
<CenteredView>
|
||||||
|
<PostFeedLoadingPlaceholder />
|
||||||
|
</CenteredView>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model.postUris.length === 0) {
|
if (model.postUris.length === 0) {
|
||||||
return (
|
return (
|
||||||
<Text type="xl" style={[styles.empty, pal.text]}>
|
<CenteredView>
|
||||||
No posts found for "{model.query}"
|
<Text type="xl" style={[styles.empty, pal.text]}>
|
||||||
</Text>
|
No posts found for "{model.query}"
|
||||||
|
</Text>
|
||||||
|
</CenteredView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,14 +74,20 @@ const PostResults = observer(({model}: {model: SearchUIModel}) => {
|
||||||
const Profiles = observer(({model}: {model: SearchUIModel}) => {
|
const Profiles = observer(({model}: {model: SearchUIModel}) => {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
if (model.isProfilesLoading) {
|
if (model.isProfilesLoading) {
|
||||||
return <ProfileCardFeedLoadingPlaceholder />
|
return (
|
||||||
|
<CenteredView>
|
||||||
|
<ProfileCardFeedLoadingPlaceholder />
|
||||||
|
</CenteredView>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model.profiles.length === 0) {
|
if (model.profiles.length === 0) {
|
||||||
return (
|
return (
|
||||||
<Text type="xl" style={[styles.empty, pal.text]}>
|
<CenteredView>
|
||||||
No users found for "{model.query}"
|
<Text type="xl" style={[styles.empty, pal.text]}>
|
||||||
</Text>
|
No users found for "{model.query}"
|
||||||
|
</Text>
|
||||||
|
</CenteredView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue