Fix button to find people to follow (#806)
parent
19ea6b6ae7
commit
a89129fcf6
|
@ -108,7 +108,7 @@
|
||||||
"react-avatar-editor": "^13.0.0",
|
"react-avatar-editor": "^13.0.0",
|
||||||
"react-circular-progressbar": "^2.1.0",
|
"react-circular-progressbar": "^2.1.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-native": "0.71.7",
|
"react-native": "0.71.8",
|
||||||
"react-native-appstate-hook": "^1.0.6",
|
"react-native-appstate-hook": "^1.0.6",
|
||||||
"react-native-background-fetch": "^4.1.8",
|
"react-native-background-fetch": "^4.1.8",
|
||||||
"react-native-draggable-flatlist": "^4.0.1",
|
"react-native-draggable-flatlist": "^4.0.1",
|
||||||
|
|
|
@ -11,6 +11,7 @@ import {MagnifyingGlassIcon} from 'lib/icons'
|
||||||
import {NavigationProp} from 'lib/routes/types'
|
import {NavigationProp} from 'lib/routes/types'
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {s} from 'lib/styles'
|
import {s} from 'lib/styles'
|
||||||
|
import {isWeb} from 'platform/detection'
|
||||||
|
|
||||||
export function CustomFeedEmptyState() {
|
export function CustomFeedEmptyState() {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
|
@ -18,8 +19,12 @@ export function CustomFeedEmptyState() {
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
|
||||||
const onPressFindAccounts = React.useCallback(() => {
|
const onPressFindAccounts = React.useCallback(() => {
|
||||||
navigation.navigate('SearchTab')
|
if (isWeb) {
|
||||||
navigation.popToTop()
|
navigation.navigate('Search', {})
|
||||||
|
} else {
|
||||||
|
navigation.navigate('SearchTab')
|
||||||
|
navigation.popToTop()
|
||||||
|
}
|
||||||
}, [navigation])
|
}, [navigation])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -11,6 +11,7 @@ import {MagnifyingGlassIcon} from 'lib/icons'
|
||||||
import {NavigationProp} from 'lib/routes/types'
|
import {NavigationProp} from 'lib/routes/types'
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {s} from 'lib/styles'
|
import {s} from 'lib/styles'
|
||||||
|
import {isWeb} from 'platform/detection'
|
||||||
|
|
||||||
export function FollowingEmptyState() {
|
export function FollowingEmptyState() {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
|
@ -18,8 +19,12 @@ export function FollowingEmptyState() {
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
|
||||||
const onPressFindAccounts = React.useCallback(() => {
|
const onPressFindAccounts = React.useCallback(() => {
|
||||||
navigation.navigate('SearchTab')
|
if (isWeb) {
|
||||||
navigation.popToTop()
|
navigation.navigate('Search', {})
|
||||||
|
} else {
|
||||||
|
navigation.navigate('SearchTab')
|
||||||
|
navigation.popToTop()
|
||||||
|
}
|
||||||
}, [navigation])
|
}, [navigation])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -15227,7 +15227,7 @@ react-native-get-random-values@^1.8.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-base64-decode "^1.0.0"
|
fast-base64-decode "^1.0.0"
|
||||||
|
|
||||||
react-native-gradle-plugin@^0.71.17:
|
react-native-gradle-plugin@^0.71.18:
|
||||||
version "0.71.18"
|
version "0.71.18"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.71.18.tgz#20ef199bc85be32e45bb6cc069ec2e7dcb1a74a6"
|
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.71.18.tgz#20ef199bc85be32e45bb6cc069ec2e7dcb1a74a6"
|
||||||
integrity sha512-7F6bD7B8Xsn3JllxcwHhFcsl9aHIig47+3eN4IHFNqfLhZr++3ElDrcqfMzugM+niWbaMi7bJ0kAkAL8eCpdWg==
|
integrity sha512-7F6bD7B8Xsn3JllxcwHhFcsl9aHIig47+3eN4IHFNqfLhZr++3ElDrcqfMzugM+niWbaMi7bJ0kAkAL8eCpdWg==
|
||||||
|
@ -15345,10 +15345,10 @@ react-native-web@^0.18.11:
|
||||||
postcss-value-parser "^4.2.0"
|
postcss-value-parser "^4.2.0"
|
||||||
styleq "^0.1.2"
|
styleq "^0.1.2"
|
||||||
|
|
||||||
react-native@0.71.7:
|
react-native@0.71.8:
|
||||||
version "0.71.7"
|
version "0.71.8"
|
||||||
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.71.7.tgz#d0ae409f6ee4fc7e7a876b4ca9d8d28934133228"
|
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.71.8.tgz#4314145341c49448cf7465b93ced52a433a5e191"
|
||||||
integrity sha512-Id6iRLS581fJMFGbBl1jP5uSmjExtGOvw5Gvh7694zISXjsRAsFMmU+izs0pyCLqDBoHK7y4BT7WGPGw693nYw==
|
integrity sha512-ftMAuhpgTkbHU9brrqsEyxcNrpYvXKeATY+if22Nfhhg1zW+6wn95w9otwTnA3xHkljPCbng8mUhmmERjGEl7g==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@jest/create-cache-key-function" "^29.2.1"
|
"@jest/create-cache-key-function" "^29.2.1"
|
||||||
"@react-native-community/cli" "10.2.2"
|
"@react-native-community/cli" "10.2.2"
|
||||||
|
@ -15375,7 +15375,7 @@ react-native@0.71.7:
|
||||||
promise "^8.3.0"
|
promise "^8.3.0"
|
||||||
react-devtools-core "^4.26.1"
|
react-devtools-core "^4.26.1"
|
||||||
react-native-codegen "^0.71.5"
|
react-native-codegen "^0.71.5"
|
||||||
react-native-gradle-plugin "^0.71.17"
|
react-native-gradle-plugin "^0.71.18"
|
||||||
react-refresh "^0.4.0"
|
react-refresh "^0.4.0"
|
||||||
react-shallow-renderer "^16.15.0"
|
react-shallow-renderer "^16.15.0"
|
||||||
regenerator-runtime "^0.13.2"
|
regenerator-runtime "^0.13.2"
|
||||||
|
|
Loading…
Reference in New Issue