Simplify handle

This commit is contained in:
Deluan 2020-06-19 12:37:26 -04:00
parent de693b8206
commit 83b8fa14c6

View File

@ -142,9 +142,7 @@ const Player = () => {
onAudioPlay={OnAudioPlay}
onAudioPause={onAudioPause}
onAudioEnded={onAudioEnded}
onPlayIndexChange={(playIndex) => {
setPlayIndex(playIndex)
}}
onPlayIndexChange={setPlayIndex}
/>
)
}