File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ export const globalContext = createContext()
77const 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" ) ) ;
You can’t perform that action at this time.
0 commit comments