mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Add prettier for codestyle and re-format everything (#1294)
This commit is contained in:
parent
8b78154075
commit
0aae1f70d2
319 changed files with 4809 additions and 3936 deletions
|
@ -12,13 +12,12 @@ import { SidebarButton } from './sidebar-button'
|
|||
import { SidebarMenu } from './sidebar-menu'
|
||||
import { DocumentSidebarMenuSelection, SpecificSidebarMenuProps } from './types'
|
||||
|
||||
export const ExportMenuSidebarMenu: React.FC<SpecificSidebarMenuProps> = (
|
||||
{
|
||||
className,
|
||||
menuId,
|
||||
onClick,
|
||||
selectedMenuId
|
||||
}) => {
|
||||
export const ExportMenuSidebarMenu: React.FC<SpecificSidebarMenuProps> = ({
|
||||
className,
|
||||
menuId,
|
||||
onClick,
|
||||
selectedMenuId
|
||||
}) => {
|
||||
useTranslation()
|
||||
|
||||
const hide = selectedMenuId !== DocumentSidebarMenuSelection.NONE && selectedMenuId !== menuId
|
||||
|
@ -29,34 +28,31 @@ export const ExportMenuSidebarMenu: React.FC<SpecificSidebarMenuProps> = (
|
|||
|
||||
return (
|
||||
<Fragment>
|
||||
<SidebarButton data-cy={ 'menu-export' } hide={ hide } icon={ expand ? 'arrow-left' : 'cloud-download' }
|
||||
className={ className } onClick={ onClickHandler }>
|
||||
<Trans i18nKey={ 'editor.documentBar.export' }/>
|
||||
<SidebarButton
|
||||
data-cy={'menu-export'}
|
||||
hide={hide}
|
||||
icon={expand ? 'arrow-left' : 'cloud-download'}
|
||||
className={className}
|
||||
onClick={onClickHandler}>
|
||||
<Trans i18nKey={'editor.documentBar.export'} />
|
||||
</SidebarButton>
|
||||
<SidebarMenu expand={ expand }>
|
||||
<SidebarButton icon={ 'github' }>
|
||||
Gist
|
||||
</SidebarButton>
|
||||
<SidebarButton icon={ 'gitlab' }>
|
||||
Gitlab Snippet
|
||||
</SidebarButton>
|
||||
<SidebarMenu expand={expand}>
|
||||
<SidebarButton icon={'github'}>Gist</SidebarButton>
|
||||
<SidebarButton icon={'gitlab'}>Gitlab Snippet</SidebarButton>
|
||||
|
||||
<ExportMarkdownSidebarEntry/>
|
||||
<ExportMarkdownSidebarEntry />
|
||||
|
||||
<SidebarButton icon={ 'file-code-o' }>
|
||||
HTML
|
||||
<SidebarButton icon={'file-code-o'}>HTML</SidebarButton>
|
||||
<SidebarButton icon={'file-code-o'}>
|
||||
<Trans i18nKey='editor.export.rawHtml' />
|
||||
</SidebarButton>
|
||||
<SidebarButton icon={ 'file-code-o' }>
|
||||
<Trans i18nKey='editor.export.rawHtml'/>
|
||||
</SidebarButton>
|
||||
<SidebarButton icon={ 'file-pdf-o' }>
|
||||
<a className='small text-muted' dir={ 'auto' } href={ links.faq } target={ '_blank' }
|
||||
rel='noopener noreferrer'>
|
||||
<Trans i18nKey={ 'editor.export.pdf' }/>
|
||||
<SidebarButton icon={'file-pdf-o'}>
|
||||
<a className='small text-muted' dir={'auto'} href={links.faq} target={'_blank'} rel='noopener noreferrer'>
|
||||
<Trans i18nKey={'editor.export.pdf'} />
|
||||
|
||||
<span className={ 'text-primary' }>
|
||||
<Trans i18nKey={ 'common.why' }/>
|
||||
</span>
|
||||
<span className={'text-primary'}>
|
||||
<Trans i18nKey={'common.why'} />
|
||||
</span>
|
||||
</a>
|
||||
</SidebarButton>
|
||||
</SidebarMenu>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue