feat: ran prettier over changes
This commit is contained in:
committed by
Deluan Quintão
parent
28bcd3f99e
commit
6da2f1ba92
@@ -38,7 +38,11 @@ const AlbumDetails = ({ classes, record }) => {
|
|||||||
className={classes.albumCover}
|
className={classes.albumCover}
|
||||||
onClick={handleOpenLightbox}
|
onClick={handleOpenLightbox}
|
||||||
>
|
>
|
||||||
<PlayButton record={record} className={classes.playButton} size={"large"} />
|
<PlayButton
|
||||||
|
record={record}
|
||||||
|
className={classes.playButton}
|
||||||
|
size={'large'}
|
||||||
|
/>
|
||||||
</CardMedia>
|
</CardMedia>
|
||||||
<CardContent className={classes.albumDetails}>
|
<CardContent className={classes.albumDetails}>
|
||||||
<Typography variant="h5" className={classes.albumTitle}>
|
<Typography variant="h5" className={classes.albumTitle}>
|
||||||
|
|||||||
@@ -46,22 +46,22 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
color: '#c5c5c5',
|
color: '#c5c5c5',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
textOverflow: 'ellipsis'
|
textOverflow: 'ellipsis',
|
||||||
},
|
},
|
||||||
albumName: {
|
albumName: {
|
||||||
fontSize: '14px',
|
fontSize: '14px',
|
||||||
color: '#eee',
|
color: '#eee',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
textOverflow: 'ellipsis'
|
textOverflow: 'ellipsis',
|
||||||
},
|
},
|
||||||
link: {
|
link: {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
display: 'block',
|
display: 'block',
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
"&:hover $tileBar": {
|
'&:hover $tileBar': {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
albumLlink: {
|
albumLlink: {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
@@ -111,17 +111,27 @@ const AlbumGridTile = ({ showArtist, record, basePath }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Link className={classes.link} to={linkToRecord(basePath, record.id, 'show')}>
|
<Link
|
||||||
|
className={classes.link}
|
||||||
|
to={linkToRecord(basePath, record.id, 'show')}
|
||||||
|
>
|
||||||
<Cover album={record} />
|
<Cover album={record} />
|
||||||
<GridListTileBar
|
<GridListTileBar
|
||||||
className={isDesktop ? classes.tileBar : classes.tileBarMobile}
|
className={isDesktop ? classes.tileBar : classes.tileBarMobile}
|
||||||
subtitle={
|
subtitle={
|
||||||
<PlayButton record={record} className={classes.playButton} size="small" />
|
<PlayButton
|
||||||
|
record={record}
|
||||||
|
className={classes.playButton}
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
}
|
}
|
||||||
actionIcon={<AlbumContextMenu record={record} color={'white'} />}
|
actionIcon={<AlbumContextMenu record={record} color={'white'} />}
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link className={classes.albumLlink} to={linkToRecord(basePath, record.id, 'show')}>
|
<Link
|
||||||
|
className={classes.albumLlink}
|
||||||
|
to={linkToRecord(basePath, record.id, 'show')}
|
||||||
|
>
|
||||||
<div className={classes.albumName}>{record.name}</div>
|
<div className={classes.albumName}>{record.name}</div>
|
||||||
<div className={classes.albumArtist}>{record.albumArtist}</div>
|
<div className={classes.albumArtist}>{record.albumArtist}</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const useStyles = makeStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
playButton: {
|
playButton: {
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
transition:'all 150ms ease-out'
|
transition: 'all 150ms ease-out',
|
||||||
},
|
},
|
||||||
albumCover: {
|
albumCover: {
|
||||||
display: 'inline-flex',
|
display: 'inline-flex',
|
||||||
@@ -35,7 +35,7 @@ export const useStyles = makeStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
'&:hover $playButton': {
|
'&:hover $playButton': {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
albumDetails: {
|
albumDetails: {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const PlayButton = ({ record, size = 'small', ...rest }) => {
|
|||||||
}
|
}
|
||||||
const dataProvider = useDataProvider()
|
const dataProvider = useDataProvider()
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const playAlbum = record => {
|
const playAlbum = (record) => {
|
||||||
dataProvider
|
dataProvider
|
||||||
.getList('albumSong', {
|
.getList('albumSong', {
|
||||||
pagination: { page: 1, perPage: -1 },
|
pagination: { page: 1, perPage: -1 },
|
||||||
|
|||||||
Reference in New Issue
Block a user