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, 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=""