Move useWebMediaQueries() above return (#872)
parent
8d03ab9399
commit
9232daba7a
|
@ -44,12 +44,12 @@ export const SearchScreen = withAuthRequired(
|
||||||
}
|
}
|
||||||
}, [foafs, suggestedActors, searchUIModel, params.q])
|
}, [foafs, suggestedActors, searchUIModel, params.q])
|
||||||
|
|
||||||
|
const {isDesktop} = useWebMediaQueries()
|
||||||
|
|
||||||
if (searchUIModel) {
|
if (searchUIModel) {
|
||||||
return <SearchResults model={searchUIModel} />
|
return <SearchResults model={searchUIModel} />
|
||||||
}
|
}
|
||||||
|
|
||||||
const {isDesktop} = useWebMediaQueries()
|
|
||||||
|
|
||||||
if (!isDesktop) {
|
if (!isDesktop) {
|
||||||
return <Mobile.SearchScreen navigation={navigation} route={route} />
|
return <Mobile.SearchScreen navigation={navigation} route={route} />
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue