Skip to content

Commit

Permalink
loop btn color issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadsarfarazafzal committed Aug 27, 2024
1 parent b991d27 commit 4d2524b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/context/PlayerContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 4d2524b

Please sign in to comment.