fixed "PDF does not work. Why?" link in export menu

this also opens a new tab
This commit is contained in:
Philip Molares 2020-08-26 22:14:26 +02:00 committed by mrdrogdrog
parent 34ceef9d98
commit 9439855b08

View file

@ -2,7 +2,6 @@ import React from 'react'
import { Dropdown } from 'react-bootstrap' import { Dropdown } from 'react-bootstrap'
import { Trans, useTranslation } from 'react-i18next' import { Trans, useTranslation } from 'react-i18next'
import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon' import { ForkAwesomeIcon } from '../../../common/fork-awesome/fork-awesome-icon'
import { TranslatedExternalLink } from '../../../common/links/translated-external-link'
const ExportMenu: React.FC = () => { const ExportMenu: React.FC = () => {
useTranslation() useTranslation()
@ -45,11 +44,13 @@ const ExportMenu: React.FC = () => {
<Dropdown.Divider/> <Dropdown.Divider/>
<Dropdown.Item className='small text-muted' dir={'auto'}> <Dropdown.Item className='small text-muted' dir={'auto'} href={'https://community.codimd.org/t/frequently-asked-questions/190'} target={'_blank'} rel='noopener noreferrer'>
<ForkAwesomeIcon icon='file-pdf-o' className={'mx-2'}/> <ForkAwesomeIcon icon='file-pdf-o' className={'mx-2'}/>
<Trans i18nKey={'editor.export.pdf'}/> <Trans i18nKey={'editor.export.pdf'}/>
&nbsp; &nbsp;
<TranslatedExternalLink i18nKey={'editor.export.why'} href={'https://community.codimd.org/t/frequently-asked-questions/190'} className={'text-primary'}/> <span className={'text-primary'}>
<Trans i18nKey={'editor.export.why'}/>
</span>
</Dropdown.Item> </Dropdown.Item>
</Dropdown.Menu> </Dropdown.Menu>
</Dropdown> </Dropdown>