Upgrade prettier to 2.3.0

Some reformatting was needed... :/
This commit is contained in:
Deluan
2021-05-11 18:13:03 -04:00
parent da684ff44c
commit fa9083ddec
9 changed files with 46 additions and 49 deletions
+4 -3
View File
@@ -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) => {
+2 -7
View File
@@ -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()
+15 -12
View File
@@ -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,
},
},
},
},
+5 -4
View File
@@ -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,
},
},
},
},
+4 -3
View File
@@ -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',
},
},
}
+4 -3
View File
@@ -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',
},
},
}
+8 -13
View File
@@ -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 (