Add star button to album detail view

This commit is contained in:
Deluan
2020-08-22 23:41:25 -04:00
parent 9df405a8ce
commit 0aceda9b89
4 changed files with 88 additions and 51 deletions
+2 -1
View File
@@ -4,7 +4,7 @@ import { useTranslate } from 'react-admin'
import Lightbox from 'react-image-lightbox'
import 'react-image-lightbox/style.css'
import subsonic from '../subsonic'
import { DurationField, formatRange } from '../common'
import { DurationField, formatRange, StarButton } from '../common'
import { ArtistLinkField } from '../common'
const AlbumDetails = ({ classes, record }) => {
@@ -50,6 +50,7 @@ const AlbumDetails = ({ classes, record }) => {
{translate('resources.song.name', { smart_count: record.songCount })}{' '}
· <DurationField record={record} source={'duration'} />
</Typography>
<StarButton record={record} resource={'album'} size={'large'} />
</CardContent>
{isLightboxOpen && (