fix: store system choice for theme
All checks were successful
Deploy React portfolio / deploy (push) Successful in 32s
All checks were successful
Deploy React portfolio / deploy (push) Successful in 32s
This commit is contained in:
@@ -37,6 +37,7 @@ function App() {
|
||||
};
|
||||
|
||||
handleChange();
|
||||
localStorage.setItem('themeSelected', themeSelected);
|
||||
mediaQuery.addEventListener('change', handleChange);
|
||||
|
||||
return () => mediaQuery.removeEventListener('change', handleChange);
|
||||
|
||||
Reference in New Issue
Block a user