Some fixes
parent
46ed910cda
commit
4fa4c67cc5
|
@ -9,14 +9,12 @@ import {Text} from '../util/text/Text'
|
||||||
import {Button} from '../util/forms/Button'
|
import {Button} from '../util/forms/Button'
|
||||||
import {MagnifyingGlassIcon} from 'lib/icons'
|
import {MagnifyingGlassIcon} from 'lib/icons'
|
||||||
import {NavigationProp} from 'lib/routes/types'
|
import {NavigationProp} from 'lib/routes/types'
|
||||||
import {useStores} from 'state/index'
|
|
||||||
import {usePalette} from 'lib/hooks/usePalette'
|
import {usePalette} from 'lib/hooks/usePalette'
|
||||||
import {s} from 'lib/styles'
|
import {s} from 'lib/styles'
|
||||||
|
|
||||||
export function CustomFeedEmptyState() {
|
export function CustomFeedEmptyState() {
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
const palInverted = usePalette('inverted')
|
const palInverted = usePalette('inverted')
|
||||||
const store = useStores()
|
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
|
||||||
const onPressFindAccounts = React.useCallback(() => {
|
const onPressFindAccounts = React.useCallback(() => {
|
||||||
|
@ -24,10 +22,6 @@ export function CustomFeedEmptyState() {
|
||||||
navigation.popToTop()
|
navigation.popToTop()
|
||||||
}, [navigation])
|
}, [navigation])
|
||||||
|
|
||||||
const onPressSettings = React.useCallback(() => {
|
|
||||||
store.shell.openModal({name: 'content-languages-settings'})
|
|
||||||
}, [store])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.emptyContainer}>
|
<View style={styles.emptyContainer}>
|
||||||
<View style={styles.emptyIconContainer}>
|
<View style={styles.emptyIconContainer}>
|
||||||
|
@ -50,16 +44,6 @@ export function CustomFeedEmptyState() {
|
||||||
size={14}
|
size={14}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button type="inverted" style={styles.emptyBtn} onPress={onPressSettings}>
|
|
||||||
<Text type="lg-medium" style={palInverted.text}>
|
|
||||||
Update my settings
|
|
||||||
</Text>
|
|
||||||
<FontAwesomeIcon
|
|
||||||
icon="angle-right"
|
|
||||||
style={palInverted.text as FontAwesomeIconStyle}
|
|
||||||
size={14}
|
|
||||||
/>
|
|
||||||
</Button>
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,6 @@ export const HomeScreen = withAuthRequired(
|
||||||
model.setup()
|
model.setup()
|
||||||
feeds.push(model)
|
feeds.push(model)
|
||||||
}
|
}
|
||||||
pagerRef.current?.setPage(0)
|
|
||||||
setCustomFeeds(feeds)
|
setCustomFeeds(feeds)
|
||||||
}, [store, store.me.savedFeeds.pinned, customFeeds, setCustomFeeds])
|
}, [store, store.me.savedFeeds.pinned, customFeeds, setCustomFeeds])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue