diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index d25bac3..e14b2ff 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -1,10 +1,9 @@ -import React, { Component } from 'react' +import { Component } from 'react' import cookie from 'react-cookie' import SkyLight from 'react-skylight' -import classNames from 'classnames' import levels from '../levels' -class Nav extends Component { +export default class Nav extends Component { handleKeyPress (e) { if (e.which === 27) { this.refs.storyBox.hide() @@ -29,25 +28,10 @@ class Nav extends Component { } render () { - let modalLeft = '50%' - if (window.innerWidth < 600) { - modalLeft = '41%' - } - const storyAndInstructionsStyle = { - backgroundColor: '#00897B', - color: '#ffffff', - borderRadius: '2%', - padding: '0 30px 0 30px', - overflowY: 'auto' - } + const levelsModalLeft = window.innerWidth < 600 ? '41%' : '50%' const levelsModalStyle = { - backgroundColor: '#00897B', - color: '#ffffff', width: '50%', - borderRadius: '2%', - padding: '0 30px 0 30px', - overflowY: 'auto', - left: modalLeft + left: levelsModalLeft } return (