Add my feeds to the drawer
parent
7916c2e02e
commit
8fa33ac928
|
@ -28,6 +28,7 @@ import {
|
||||||
MagnifyingGlassIcon2Solid,
|
MagnifyingGlassIcon2Solid,
|
||||||
MoonIcon,
|
MoonIcon,
|
||||||
UserIconSolid,
|
UserIconSolid,
|
||||||
|
SatelliteDishIcon,
|
||||||
HandIcon,
|
HandIcon,
|
||||||
} from 'lib/icons'
|
} from 'lib/icons'
|
||||||
import {UserAvatar} from 'view/com/util/UserAvatar'
|
import {UserAvatar} from 'view/com/util/UserAvatar'
|
||||||
|
@ -95,6 +96,12 @@ export const DrawerContent = observer(() => {
|
||||||
onPressTab('MyProfile')
|
onPressTab('MyProfile')
|
||||||
}, [onPressTab])
|
}, [onPressTab])
|
||||||
|
|
||||||
|
const onPressMyFeeds = React.useCallback(() => {
|
||||||
|
track('Menu:ItemClicked', {url: 'MyFeeds'})
|
||||||
|
navigation.navigate('SavedFeeds')
|
||||||
|
store.shell.closeDrawer()
|
||||||
|
}, [navigation, track, store.shell])
|
||||||
|
|
||||||
const onPressModeration = React.useCallback(() => {
|
const onPressModeration = React.useCallback(() => {
|
||||||
track('Menu:ItemClicked', {url: 'Moderation'})
|
track('Menu:ItemClicked', {url: 'Moderation'})
|
||||||
navigation.navigate('Moderation')
|
navigation.navigate('Moderation')
|
||||||
|
@ -233,12 +240,19 @@ export const DrawerContent = observer(() => {
|
||||||
/>
|
/>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon={
|
icon={
|
||||||
<HandIcon
|
<SatelliteDishIcon
|
||||||
strokeWidth={5}
|
strokeWidth={1.5}
|
||||||
style={pal.text as FontAwesomeIconStyle}
|
style={pal.text as FontAwesomeIconStyle}
|
||||||
size={24}
|
size={24}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
label="My Feeds"
|
||||||
|
accessibilityLabel="My Feeds"
|
||||||
|
accessibilityHint=""
|
||||||
|
onPress={onPressMyFeeds}
|
||||||
|
/>
|
||||||
|
<MenuItem
|
||||||
|
icon={<HandIcon strokeWidth={5} style={pal.text} size={24} />}
|
||||||
label="Moderation"
|
label="Moderation"
|
||||||
accessibilityLabel="Moderation"
|
accessibilityLabel="Moderation"
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
|
|
Loading…
Reference in New Issue