Simplify handle
This commit is contained in:
@@ -142,9 +142,7 @@ const Player = () => {
|
|||||||
onAudioPlay={OnAudioPlay}
|
onAudioPlay={OnAudioPlay}
|
||||||
onAudioPause={onAudioPause}
|
onAudioPause={onAudioPause}
|
||||||
onAudioEnded={onAudioEnded}
|
onAudioEnded={onAudioEnded}
|
||||||
onPlayIndexChange={(playIndex) => {
|
onPlayIndexChange={setPlayIndex}
|
||||||
setPlayIndex(playIndex)
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user