Merge pull request #918 from omnivore-app/enable-api

Enable API in the dropdown
This commit is contained in:
Jackson Harper 2022-07-01 17:40:14 -07:00 committed by GitHub
commit a0e040c8b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -19,6 +19,7 @@ export type HeaderDropdownAction =
| 'navigate-to-labels'
| 'navigate-to-profile'
| 'navigate-to-subscriptions'
| 'navigate-to-api'
| 'increaseFontSize'
| 'decreaseFontSize'
| 'logout'
@ -76,6 +77,10 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
onSelect={() => props.actionHandler('navigate-to-labels')}
title="Labels"
/>
<DropdownOption
onSelect={() => props.actionHandler('navigate-to-api')}
title="API Keys"
/>
{/* <DropdownOption
onSelect={() => props.actionHandler('navigate-to-subscriptions')}
title="Subscriptions"

View file

@ -113,6 +113,9 @@ export function PrimaryHeader(props: HeaderProps): JSX.Element {
case 'navigate-to-subscriptions':
router.push('/settings/subscriptions')
break
case 'navigate-to-api':
router.push('/settings/api')
break
case 'logout':
props.setShowLogoutConfirmation(true)
break