We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d00a03e commit 44e9d01Copy full SHA for 44e9d01
src/components/Nav.js
@@ -1,7 +1,6 @@
1
import React from 'react'
2
import { Link } from 'gatsby'
3
import styled from '@emotion/styled'
4
-import { Global, css } from '@emotion/core'
5
import { breakpoints, colors } from '../utils/variables'
6
import Hamburger from '../resources/hamburger.svg'
7
import Multiply from '../resources/multiply.svg'
@@ -159,13 +158,6 @@ class Nav extends React.Component {
159
158
const { shouldRenderLogo } = this.props
160
return (
161
<StyledNav>
162
- <Global
163
- styles={css`
164
- html {
165
- overflow-y: ${this.state.isNavRendered ? 'hidden' : 'scroll'};
166
- }
167
- `}
168
- />
169
<nav className="nav" style={ this.state.isNavRendered ? { background: '#fff', height: '100vh' } : {} }>
170
<div className="nav__header">
171
{ shouldRenderLogo ?
0 commit comments