Upgrade prettier to 2.3.0
Some reformatting was needed... :/
This commit is contained in:
@@ -295,9 +295,10 @@ const Player = () => {
|
||||
[dispatch, showNotifications]
|
||||
)
|
||||
|
||||
const onAudioPause = useCallback((info) => dispatch(currentPlaying(info)), [
|
||||
dispatch,
|
||||
])
|
||||
const onAudioPause = useCallback(
|
||||
(info) => dispatch(currentPlaying(info)),
|
||||
[dispatch]
|
||||
)
|
||||
|
||||
const onAudioEnded = useCallback(
|
||||
(currentPlayId, audioLists, info) => {
|
||||
|
||||
@@ -17,13 +17,8 @@ import { SelectPlaylistInput } from './SelectPlaylistInput'
|
||||
import DuplicateSongDialog from './DuplicateSongDialog'
|
||||
|
||||
export const AddToPlaylistDialog = () => {
|
||||
const {
|
||||
open,
|
||||
selectedIds,
|
||||
onSuccess,
|
||||
duplicateSong,
|
||||
duplicateIds,
|
||||
} = useSelector((state) => state.addToPlaylistDialog)
|
||||
const { open, selectedIds, onSuccess, duplicateSong, duplicateIds } =
|
||||
useSelector((state) => state.addToPlaylistDialog)
|
||||
const dispatch = useDispatch()
|
||||
const translate = useTranslate()
|
||||
const notify = useNotify()
|
||||
|
||||
@@ -53,10 +53,11 @@ describe('AddToPlaylistDialog', () => {
|
||||
data: mockIndexedData,
|
||||
list: {
|
||||
cachedRequests: {
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
|
||||
{
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -129,10 +130,11 @@ describe('AddToPlaylistDialog', () => {
|
||||
data: mockIndexedData,
|
||||
list: {
|
||||
cachedRequests: {
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
|
||||
{
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -186,10 +188,11 @@ describe('AddToPlaylistDialog', () => {
|
||||
data: mockIndexedData,
|
||||
list: {
|
||||
cachedRequests: {
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
|
||||
{
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -44,10 +44,11 @@ describe('SelectPlaylistInput', () => {
|
||||
data: mockIndexedData,
|
||||
list: {
|
||||
cachedRequests: {
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}': {
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
|
||||
{
|
||||
ids: ['sample-id1', 'sample-id2'],
|
||||
total: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -47,9 +47,10 @@ const musicListActions = {
|
||||
'button:first-child>span:first-child>span': {
|
||||
display: 'none',
|
||||
},
|
||||
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg': {
|
||||
color: '#656565',
|
||||
},
|
||||
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg':
|
||||
{
|
||||
color: '#656565',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -48,9 +48,10 @@ const musicListActions = {
|
||||
'button:first-child>span:first-child>span': {
|
||||
display: 'none',
|
||||
},
|
||||
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg': {
|
||||
color: '#b3b3b3',
|
||||
},
|
||||
'button>span:first-child>span, button:not(:first-child)>span:first-child>svg':
|
||||
{
|
||||
color: '#b3b3b3',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -31,19 +31,14 @@ const DeleteUserButton = (props) => {
|
||||
onClick,
|
||||
...rest
|
||||
} = props
|
||||
const {
|
||||
open,
|
||||
loading,
|
||||
handleDialogOpen,
|
||||
handleDialogClose,
|
||||
handleDelete,
|
||||
} = useDeleteWithConfirmController({
|
||||
resource,
|
||||
record,
|
||||
redirect,
|
||||
basePath,
|
||||
onClick,
|
||||
})
|
||||
const { open, loading, handleDialogOpen, handleDialogClose, handleDelete } =
|
||||
useDeleteWithConfirmController({
|
||||
resource,
|
||||
record,
|
||||
redirect,
|
||||
basePath,
|
||||
onClick,
|
||||
})
|
||||
|
||||
const classes = useStyles(props)
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user