From e2a47c22d0a8e2899f6ffb49ef997098e4aff8eb Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 19 May 2025 16:56:13 +0200 Subject: [PATCH] setPlayPause Signed-off-by: ale --- src/App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.js b/src/App.js index 37d6461..9296745 100644 --- a/src/App.js +++ b/src/App.js @@ -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 = () => {