mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #361 from omnivore-app/fix/add-emails-to-dropdown
Add link to Emails to main dropdown
This commit is contained in:
commit
536e3ee9fe
2 changed files with 7 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue