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}
|
||||
onAudioPause={onAudioPause}
|
||||
onAudioEnded={onAudioEnded}
|
||||
onPlayIndexChange={(playIndex) => {
|
||||
setPlayIndex(playIndex)
|
||||
}}
|
||||
onPlayIndexChange={setPlayIndex}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue