New component for song display in song list (#833)
* added new component SONGSIMPLELIST for smaller displays * added new component SONGSIMPLELIST for smaller displays * added new component SONGSIMPLELIST for smaller displays * Updated songsimplelist Removed truncation * removed garbage code * refactored some issues of overlapping * refactored some issues of overlapping * changed the song ui design * refactored some bugs in artist display * refactored some bugs in artist display * removed garbage dependencies * removed div bugs * added all the logic to the component itself
This commit is contained in:
+2
-13
@@ -11,12 +11,12 @@ import StarIcon from '@material-ui/icons/Star'
|
||||
import {
|
||||
DurationField,
|
||||
List,
|
||||
SimpleList,
|
||||
SongContextMenu,
|
||||
SongDatagrid,
|
||||
SongDetails,
|
||||
QuickFilter,
|
||||
SongTitleField,
|
||||
SongSimpleList,
|
||||
} from '../common'
|
||||
import { useDispatch } from 'react-redux'
|
||||
import { setTrack } from '../actions'
|
||||
@@ -78,18 +78,7 @@ const SongList = (props) => {
|
||||
perPage={isXsmall ? 50 : 15}
|
||||
>
|
||||
{isXsmall ? (
|
||||
<SimpleList
|
||||
primaryText={(r) => r.title}
|
||||
secondaryText={(r) => r.artist}
|
||||
tertiaryText={(r) => (
|
||||
<>
|
||||
<DurationField record={r} source={'duration'} />
|
||||
|
||||
</>
|
||||
)}
|
||||
linkType={(id, basePath, record) => dispatch(setTrack(record))}
|
||||
rightIcon={(r) => <SongContextMenu record={r} visible={true} />}
|
||||
/>
|
||||
<SongSimpleList />
|
||||
) : (
|
||||
<SongDatagrid
|
||||
expand={<SongDetails />}
|
||||
|
||||
Reference in New Issue
Block a user