quintodrome/ui/src/playlist/PlaylistList.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
680 B
JavaScript
Raw Normal View History

2020-05-05 14:28:55 -08:00
import React from 'react'
2020-05-08 06:47:06 -08:00
import {
List,
Datagrid,
TextField,
BooleanField,
2020-05-10 15:59:47 -08:00
NumberField,
2020-05-08 06:47:06 -08:00
DateField,
} from 'react-admin'
2020-05-05 14:28:55 -08:00
import { DurationField, Title } from '../common'
const PlaylistList = (props) => (
<List
{...props}
title={
<Title subTitle={'resources.playlist.name'} args={{ smart_count: 2 }} />
}
exporter={false}
>
<Datagrid rowClick="edit">
2020-05-08 06:47:06 -08:00
<TextField source="name" />
<TextField source="owner" />
<BooleanField source="public" />
2020-05-10 15:59:47 -08:00
<NumberField source="songCount" />
2020-05-08 06:47:06 -08:00
<DurationField source="duration" />
<DateField source="updatedAt" />
2020-05-05 14:28:55 -08:00
</Datagrid>
</List>
)
export default PlaylistList