Skip to content

Commit ef88c57

Browse files
authored
Merge pull request #4 from good3n/light-theme
Light theme fixes
2 parents 1bfd684 + 82f3a7d commit ef88c57

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

gatsby-ssr.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
*/
66

77
// You can delete this file if you're not using it
8+
9+
import React from 'react'
10+
import { Provider } from './src/context/globalContext'
11+
export const wrapRootElement = ({ element }) => <Provider>{element}</Provider>

src/components/ThemeToggle/ThemeToggle.styles.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const StyledButton = styled.button`
1616
1717
@media (max-width: 991px) {
1818
top: 59px;
19-
/* right: 119.5px; */
2019
}
2120
2221
&.light {

src/context/globalContext.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export const globalContext = createContext()
77
const Provider = ({ children }) => {
88
const [theme, setTheme] = useState(`dark`)
99

10-
console.log(window.localStorage)
11-
1210
useEffect(() => {
1311
if (window.localStorage.getItem(`theme`)) {
1412
setTheme(window.localStorage.getItem("theme"));

0 commit comments

Comments
 (0)