Merge pull request #361 from omnivore-app/fix/add-emails-to-dropdown

Add link to Emails to main dropdown
This commit is contained in:
Jackson Harper 2022-04-04 11:57:11 -07:00 committed by GitHub
commit 536e3ee9fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -15,7 +15,7 @@ export type HeaderDropdownAction =
| 'apply-light-theme'
| 'apply-lighter-theme'
| 'navigate-to-install'
| 'navigate-to-feedback'
| 'navigate-to-emails'
| 'navigate-to-profile'
| 'increaseFontSize'
| 'decreaseFontSize'
@ -77,6 +77,10 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
onSelect={() => props.actionHandler('navigate-to-install')}
title="Install"
/>
<DropdownOption
onSelect={() => props.actionHandler('navigate-to-emails')}
title="Emails"
/>
<DropdownOption
onSelect={() => window.Intercom('show')}
title="Feedback"

View file

@ -103,8 +103,8 @@ export function PrimaryHeader(props: HeaderProps): JSX.Element {
case 'navigate-to-install':
router.push('/settings/installation')
break
case 'navigate-to-feedback':
console.log('navigate to feedback - unimplemented') // TODO: implement intercom
case 'navigate-to-emails':
router.push('/settings/emails')
break
case 'navigate-to-profile':
if (props.user) {