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
@@ -6,7 +6,7 @@ import {
required,
SimpleForm,
SelectInput,
ReferenceInput
ReferenceInput,
} from 'react-admin'
import { Title } from '../common'
@@ -39,7 +39,7 @@ const PlayerEdit = (props) => (
{ id: 192, name: '192' },
{ id: 256, name: '256' },
{ id: 320, name: '320' },
{ id: 0, name: 'Unlimited' }
{ id: 0, name: 'Unlimited' },
]}
/>
<TextField source="client" />
+12 -12
View File
@@ -5,7 +5,7 @@ import {
TextField,
DateField,
FunctionField,
ReferenceField
ReferenceField,
} from 'react-admin'
import { useMediaQuery } from '@material-ui/core'
import { SimpleList, Title } from '../common'
@@ -21,18 +21,18 @@ const PlayerList = (props) => {
tertiaryText={(r) => (r.maxBitRate ? r.maxBitRate : 'Unlimited')}
/>
) : (
<Datagrid rowClick="edit">
<TextField source="name" />
<ReferenceField source="transcodingId" reference="transcoding">
<Datagrid rowClick="edit">
<TextField source="name" />
</ReferenceField>
<FunctionField
source="maxBitRate"
render={(r) => (r.maxBitRate ? r.maxBitRate : 'Unlimited')}
/>
<DateField source="lastSeen" showTime />
</Datagrid>
)}
<ReferenceField source="transcodingId" reference="transcoding">
<TextField source="name" />
</ReferenceField>
<FunctionField
source="maxBitRate"
render={(r) => (r.maxBitRate ? r.maxBitRate : 'Unlimited')}
/>
<DateField source="lastSeen" showTime />
</Datagrid>
)}
</List>
)
}
+1 -1
View File
@@ -5,5 +5,5 @@ import PlayerEdit from './PlayerEdit'
export default {
list: PlayerList,
edit: PlayerEdit,
icon: RadioIcon
icon: RadioIcon,
}