setPlayPause
Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
479c394c50
commit
e2a47c22d0
@ -33,11 +33,13 @@ const App = () => {
|
||||
play = () => {
|
||||
if (audioElmRef.current) {
|
||||
audioElmRef.current.play()
|
||||
setPlayPause(true)
|
||||
}
|
||||
},
|
||||
pause = () => {
|
||||
if (audioElmRef.current) {
|
||||
audioElmRef.current.pause()
|
||||
setPlayPause(false)
|
||||
}
|
||||
},
|
||||
loadData = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user