Add my feeds to the drawer

zio/stable
Paul Frazee 2023-05-25 17:13:32 -05:00
parent 7916c2e02e
commit 8fa33ac928
1 changed files with 16 additions and 2 deletions

View File

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