Upgrade Prettier to 2.0.4. Reformatted all JS files
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -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()]} />
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ export default {
|
||||
list: TranscodingList,
|
||||
edit: TranscodingEdit,
|
||||
create: TranscodingCreate,
|
||||
icon: TransformIcon
|
||||
icon: TransformIcon,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user