Merge pull request #1726 from omnivore-app/feat/docs-link

Add documentation link to main dropdown menu
This commit is contained in:
Jackson Harper 2023-01-27 14:49:33 +08:00 committed by GitHub
commit 94b5047ef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,28 +47,24 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
<Button
style="themeSwitch"
css={{ background: '#FFFFFF' }}
data-state={isDark ? 'unselected' : 'selected' }
data-state={isDark ? 'unselected' : 'selected'}
onClick={() => {
props.actionHandler('apply-lighter-theme')
setCurrentTheme(currentThemeName())
}}
>
{!isDark && (
<Check color='#F9D354' size={32} />
)}
{!isDark && <Check color="#F9D354" size={32} />}
</Button>
<Button
style="themeSwitch"
css={{ background: '#3D3D3D' }}
data-state={isDark ? 'selected' : 'unselected' }
data-state={isDark ? 'selected' : 'unselected'}
onClick={() => {
props.actionHandler('apply-dark-theme')
setCurrentTheme(currentThemeName())
}}
>
{isDark && (
<Check color='#F9D354' size={32} />
)}
{isDark && <Check color="#F9D354" size={32} />}
</Button>
</HStack>
</VStack>
@ -92,6 +88,10 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
onSelect={() => props.actionHandler('navigate-to-integrations')}
title="Integrations"
/>
<DropdownOption
onSelect={() => window.open('https://docs.omnivore.app', '_blank')}
title="Documentation"
/>
<DropdownOption
onSelect={() => window.Intercom('show')}
title="Feedback"