From 4d2524bb23f72bafe63bdb62dbeef60d5b8a7786 Mon Sep 17 00:00:00 2001 From: Mohammad Sarfaraz Afzal Date: Tue, 27 Aug 2024 18:57:50 +0530 Subject: [PATCH] loop btn color issue --- src/context/PlayerContext.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/context/PlayerContext.jsx b/src/context/PlayerContext.jsx index ee5b556..b24622d 100644 --- a/src/context/PlayerContext.jsx +++ b/src/context/PlayerContext.jsx @@ -196,6 +196,12 @@ const PlayerContextProvider = (props) => { useEffect(() => { document.querySelector('html').classList.remove('dark', 'light'); document.querySelector('html').classList.add(themeMode); + if (darkStatus) { + svgLoop.current.style.fill = "#e8eaed"; + } + else { + svgLoop.current.style.fill = "#121212"; + } }, [themeMode]); return (