Upgrade Prettier to 2.0.4. Reformatted all JS files

This commit is contained in:
Deluan
2020-04-20 09:09:29 -04:00
parent de115ff466
commit b3f70538a9
55 changed files with 318 additions and 286 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import {
SelectInput,
Create,
required,
SimpleForm
SimpleForm,
} from 'react-admin'
import { Title } from '../common'
@@ -30,7 +30,7 @@ const TranscodingCreate = (props) => (
{ id: 160, name: '160' },
{ id: 192, name: '192' },
{ id: 256, name: '256' },
{ id: 320, name: '320' }
{ id: 320, name: '320' },
]}
defaultValue={192}
/>
+1 -1
View File
@@ -24,7 +24,7 @@ const TranscodingEdit = (props) => (
{ id: 160, name: '160' },
{ id: 192, name: '192' },
{ id: 256, name: '256' },
{ id: 320, name: '320' }
{ id: 320, name: '320' },
]}
/>
<TextInput source="command" fullWidth validate={[required()]} />
+12 -8
View File
@@ -6,7 +6,11 @@ import { SimpleList, Title } from '../common'
const TranscodingList = (props) => {
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
return (
<List title={<Title subTitle={'Transcodings'} />} exporter={false} {...props}>
<List
title={<Title subTitle={'Transcodings'} />}
exporter={false}
{...props}
>
{isXsmall ? (
<SimpleList
primaryText={(r) => r.name}
@@ -14,13 +18,13 @@ const TranscodingList = (props) => {
tertiaryText={(r) => r.defaultBitRate}
/>
) : (
<Datagrid rowClick="edit">
<TextField source="name" />
<TextField source="targetFormat" />
<TextField source="defaultBitRate" />
<TextField source="command" />
</Datagrid>
)}
<Datagrid rowClick="edit">
<TextField source="name" />
<TextField source="targetFormat" />
<TextField source="defaultBitRate" />
<TextField source="command" />
</Datagrid>
)}
</List>
)
}
+1 -1
View File
@@ -7,5 +7,5 @@ export default {
list: TranscodingList,
edit: TranscodingEdit,
create: TranscodingCreate,
icon: TransformIcon
icon: TransformIcon,
}