diff options
author | Eric Bailey <git@esb.lol> | 2024-06-11 13:08:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 11:08:06 -0700 |
commit | 4b6609d48b41cdc5be6fb957ea396e8aba18b1b6 (patch) | |
tree | 57a2bdf4fe7a088fb12a569945201b464e7208de /src/screens/Home/NoFeedsPinned.tsx | |
parent | 3573f7ea40d41b8c416194da31fbbad092062679 (diff) | |
download | voidsky-4b6609d48b41cdc5be6fb957ea396e8aba18b1b6.tar.zst |
Move feeds screen into common navigator, handle usages (#4365)
* Move feeds screen into common navigator, handle usages * Add link to Feeds from home screen (#4366) * Add link to feeds to home screen header * Center logo * Replace icons * Tweak spacing * Tweak spacing * Swap icon, sizing * Buttonize, size * Make menu same alignment on all screens * Remove FeedsTab support, enable drawer swipe on MessagesTab * Add note * Vertically align header * Swap in Pin * Use hashtag icon * Remove png * Fix reference * Ensure alignment with home and other screens
Diffstat (limited to 'src/screens/Home/NoFeedsPinned.tsx')
-rw-r--r-- | src/screens/Home/NoFeedsPinned.tsx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/screens/Home/NoFeedsPinned.tsx b/src/screens/Home/NoFeedsPinned.tsx index e804e3e09..3a98b8734 100644 --- a/src/screens/Home/NoFeedsPinned.tsx +++ b/src/screens/Home/NoFeedsPinned.tsx @@ -3,13 +3,10 @@ import {View} from 'react-native' import {TID} from '@atproto/common-web' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {useNavigation} from '@react-navigation/native' import {DISCOVER_SAVED_FEED, TIMELINE_SAVED_FEED} from '#/lib/constants' -import {isNative} from '#/platform/detection' import {useOverwriteSavedFeedsMutation} from '#/state/queries/preferences' import {UsePreferencesQueryResponse} from '#/state/queries/preferences' -import {NavigationProp} from 'lib/routes/types' import {CenteredView} from '#/view/com/util/Views' import {atoms as a} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -26,7 +23,6 @@ export function NoFeedsPinned({ }) { const {_} = useLingui() const headerOffset = useHeaderOffset() - const navigation = useNavigation<NavigationProp>() const {isPending, mutateAsync: overwriteSavedFeeds} = useOverwriteSavedFeedsMutation() @@ -66,15 +62,6 @@ export function NoFeedsPinned({ await overwriteSavedFeeds(toSave) }, [overwriteSavedFeeds, preferences.savedFeeds]) - const onPressFeedsLink = React.useCallback(() => { - if (isNative) { - // Hack that's necessary due to how our navigators are set up. - navigation.navigate('FeedsTab') - navigation.popToTop() - return false - } - }, [navigation]) - return ( <CenteredView sideBorders style={[a.h_full_vh]}> <View @@ -115,7 +102,6 @@ export function NoFeedsPinned({ <Link label={_(msg`Browse other feeds`)} to="/feeds" - onPress={onPressFeedsLink} size="medium" variant="solid" color="secondary"> |