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