mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-07 19:03:18 +03:00
Make event handlers naming consistent (camelCase)
This commit is contained in:
parent
29817db9f2
commit
4b38a13243
@ -196,14 +196,14 @@ const Player = () => {
|
|||||||
defaultOptions,
|
defaultOptions,
|
||||||
])
|
])
|
||||||
|
|
||||||
const OnAudioListsChange = useCallback(
|
const onAudioListsChange = useCallback(
|
||||||
(currentPlayIndex, audioLists) => {
|
(currentPlayIndex, audioLists) => {
|
||||||
dispatch(syncQueue(currentPlayIndex, audioLists))
|
dispatch(syncQueue(currentPlayIndex, audioLists))
|
||||||
},
|
},
|
||||||
[dispatch]
|
[dispatch]
|
||||||
)
|
)
|
||||||
|
|
||||||
const OnAudioProgress = useCallback(
|
const onAudioProgress = useCallback(
|
||||||
(info) => {
|
(info) => {
|
||||||
if (info.ended) {
|
if (info.ended) {
|
||||||
document.title = 'Navidrome'
|
document.title = 'Navidrome'
|
||||||
@ -233,7 +233,7 @@ const Player = () => {
|
|||||||
[dispatch]
|
[dispatch]
|
||||||
)
|
)
|
||||||
|
|
||||||
const OnAudioPlay = useCallback(
|
const onAudioPlay = useCallback(
|
||||||
(info) => {
|
(info) => {
|
||||||
dispatch(currentPlaying(info))
|
dispatch(currentPlaying(info))
|
||||||
if (info.duration) {
|
if (info.duration) {
|
||||||
@ -298,9 +298,9 @@ const Player = () => {
|
|||||||
{...options}
|
{...options}
|
||||||
quietUpdate
|
quietUpdate
|
||||||
className={classes.player}
|
className={classes.player}
|
||||||
onAudioListsChange={OnAudioListsChange}
|
onAudioListsChange={onAudioListsChange}
|
||||||
onAudioProgress={OnAudioProgress}
|
onAudioProgress={onAudioProgress}
|
||||||
onAudioPlay={OnAudioPlay}
|
onAudioPlay={onAudioPlay}
|
||||||
onAudioPause={onAudioPause}
|
onAudioPause={onAudioPause}
|
||||||
onAudioEnded={onAudioEnded}
|
onAudioEnded={onAudioEnded}
|
||||||
onAudioVolumeChange={onAudioVolumeChange}
|
onAudioVolumeChange={onAudioVolumeChange}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user