diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/posts/CustomFeedEmptyState.tsx | 9 | ||||
-rw-r--r-- | src/view/com/posts/FollowingEmptyState.tsx | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/view/com/posts/CustomFeedEmptyState.tsx b/src/view/com/posts/CustomFeedEmptyState.tsx index e51794e7c..e83a94f03 100644 --- a/src/view/com/posts/CustomFeedEmptyState.tsx +++ b/src/view/com/posts/CustomFeedEmptyState.tsx @@ -11,6 +11,7 @@ import {MagnifyingGlassIcon} from 'lib/icons' import {NavigationProp} from 'lib/routes/types' import {usePalette} from 'lib/hooks/usePalette' import {s} from 'lib/styles' +import {isWeb} from 'platform/detection' export function CustomFeedEmptyState() { const pal = usePalette('default') @@ -18,8 +19,12 @@ export function CustomFeedEmptyState() { const navigation = useNavigation<NavigationProp>() const onPressFindAccounts = React.useCallback(() => { - navigation.navigate('SearchTab') - navigation.popToTop() + if (isWeb) { + navigation.navigate('Search', {}) + } else { + navigation.navigate('SearchTab') + navigation.popToTop() + } }, [navigation]) return ( diff --git a/src/view/com/posts/FollowingEmptyState.tsx b/src/view/com/posts/FollowingEmptyState.tsx index b37298179..d1843900b 100644 --- a/src/view/com/posts/FollowingEmptyState.tsx +++ b/src/view/com/posts/FollowingEmptyState.tsx @@ -11,6 +11,7 @@ import {MagnifyingGlassIcon} from 'lib/icons' import {NavigationProp} from 'lib/routes/types' import {usePalette} from 'lib/hooks/usePalette' import {s} from 'lib/styles' +import {isWeb} from 'platform/detection' export function FollowingEmptyState() { const pal = usePalette('default') @@ -18,8 +19,12 @@ export function FollowingEmptyState() { const navigation = useNavigation<NavigationProp>() const onPressFindAccounts = React.useCallback(() => { - navigation.navigate('SearchTab') - navigation.popToTop() + if (isWeb) { + navigation.navigate('Search', {}) + } else { + navigation.navigate('SearchTab') + navigation.popToTop() + } }, [navigation]) return ( |