mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 16:14:22 -05:00
fixed "PDF does not work. Why?" link in export menu
this also opens a new tab
This commit is contained in:
parent
34ceef9d98
commit
9439855b08
1 changed files with 4 additions and 3 deletions
|
@ -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'}/>
|
||||||
|
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in a new issue