Add and show Playlists sizes

This commit is contained in:
Deluan
2020-10-12 21:28:59 -04:00
parent 68a9be5e86
commit 2f8dc794de
5 changed files with 18 additions and 7 deletions
+3 -1
View File
@@ -2,7 +2,7 @@ import React from 'react'
import { Card, CardContent, Typography } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { useTranslate } from 'react-admin'
import { DurationField } from '../common'
import { DurationField, SizeField } from '../common'
const useStyles = makeStyles((theme) => ({
container: {
@@ -56,6 +56,8 @@ const PlaylistDetails = (props) => {
})}
{' · '}
<DurationField record={record} source={'duration'} />
{' · '}
<SizeField record={record} source={'size'} />
</span>
) : (
<span>&nbsp;</span>