Add prettier for codestyle and re-format everything (#1294)

This commit is contained in:
Erik Michelson 2021-06-06 23:14:00 +02:00 committed by GitHub
parent 8b78154075
commit 0aae1f70d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
319 changed files with 4809 additions and 3936 deletions

View file

@ -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'} />
&nbsp;
<span className={ 'text-primary' }>
<Trans i18nKey={ 'common.why' }/>
</span>
<span className={'text-primary'}>
<Trans i18nKey={'common.why'} />
</span>
</a>
</SidebarButton>
</SidebarMenu>