Simplify handle
This commit is contained in:
parent
de693b8206
commit
83b8fa14c6
1 changed files with 1 additions and 3 deletions
|
|
@ -142,9 +142,7 @@ const Player = () => {
|
||||||
onAudioPlay={OnAudioPlay}
|
onAudioPlay={OnAudioPlay}
|
||||||
onAudioPause={onAudioPause}
|
onAudioPause={onAudioPause}
|
||||||
onAudioEnded={onAudioEnded}
|
onAudioEnded={onAudioEnded}
|
||||||
onPlayIndexChange={(playIndex) => {
|
onPlayIndexChange={setPlayIndex}
|
||||||
setPlayIndex(playIndex)
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue