We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d182461 commit 7b126e5Copy full SHA for 7b126e5
2 files changed
src/components/ThemeToggle/ThemeToggle.styles.js
@@ -16,7 +16,6 @@ export const StyledButton = styled.button`
16
17
@media (max-width: 991px) {
18
top: 59px;
19
- /* right: 119.5px; */
20
}
21
22
&.light {
src/context/globalContext.js
@@ -7,8 +7,6 @@ export const globalContext = createContext()
7
const Provider = ({ children }) => {
8
const [theme, setTheme] = useState(`dark`)
9
10
- console.log(window.localStorage)
11
-
12
useEffect(() => {
13
if (window.localStorage.getItem(`theme`)) {
14
setTheme(window.localStorage.getItem("theme"));
0 commit comments