Add link to Emails to main dropdown

Also remove the unused navigate-to-feedback, we directly open
intercom from the dropdown.
This commit is contained in:
Jackson Harper 2022-03-31 10:44:35 -07:00
parent 91b007fc37
commit a34cf9adfb
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) {