From 4fa4c67cc5ef856a9548bb4154f82aebf447e91d Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 18 May 2023 17:36:16 -0500 Subject: [PATCH] Some fixes --- src/view/com/posts/CustomFeedEmptyState.tsx | 16 ---------------- src/view/screens/Home.tsx | 1 - 2 files changed, 17 deletions(-) diff --git a/src/view/com/posts/CustomFeedEmptyState.tsx b/src/view/com/posts/CustomFeedEmptyState.tsx index 69dd7990..e51794e7 100644 --- a/src/view/com/posts/CustomFeedEmptyState.tsx +++ b/src/view/com/posts/CustomFeedEmptyState.tsx @@ -9,14 +9,12 @@ import {Text} from '../util/text/Text' import {Button} from '../util/forms/Button' import {MagnifyingGlassIcon} from 'lib/icons' import {NavigationProp} from 'lib/routes/types' -import {useStores} from 'state/index' import {usePalette} from 'lib/hooks/usePalette' import {s} from 'lib/styles' export function CustomFeedEmptyState() { const pal = usePalette('default') const palInverted = usePalette('inverted') - const store = useStores() const navigation = useNavigation() const onPressFindAccounts = React.useCallback(() => { @@ -24,10 +22,6 @@ export function CustomFeedEmptyState() { navigation.popToTop() }, [navigation]) - const onPressSettings = React.useCallback(() => { - store.shell.openModal({name: 'content-languages-settings'}) - }, [store]) - return ( @@ -50,16 +44,6 @@ export function CustomFeedEmptyState() { size={14} /> - ) } diff --git a/src/view/screens/Home.tsx b/src/view/screens/Home.tsx index d761994f..f8a49702 100644 --- a/src/view/screens/Home.tsx +++ b/src/view/screens/Home.tsx @@ -53,7 +53,6 @@ export const HomeScreen = withAuthRequired( model.setup() feeds.push(model) } - pagerRef.current?.setPage(0) setCustomFeeds(feeds) }, [store, store.me.savedFeeds.pinned, customFeeds, setCustomFeeds])