feat: make song list more responsive

This commit is contained in:
Deluan
2020-02-06 12:54:27 -05:00
parent c57007db52
commit 690f92a671
3 changed files with 37 additions and 11 deletions
+14 -1
View File
@@ -2,6 +2,9 @@ import React from 'react'
import { Button, useDataProvider, useUnselectAll } from 'react-admin'
import { useDispatch } from 'react-redux'
import { addTrack } from '../player'
import AddToQueueIcon from '@material-ui/icons/AddToQueue'
import Tooltip from '@material-ui/core/Tooltip'
const AddToQueueButton = ({ selectedIds }) => {
const dispatch = useDispatch()
@@ -16,7 +19,17 @@ const AddToQueueButton = ({ selectedIds }) => {
unselectAll('song')
}
return <Button color="secondary" label="Add To Queue" onClick={addToQueue} />
return (
<Button
color="secondary"
label={
<Tooltip title={'Play Later'} placement="right">
<AddToQueueIcon />
</Tooltip>
}
onClick={addToQueue}
/>
)
}
export default AddToQueueButton