File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 "react-helmet" : " ^5.2.0" ,
3535 "react-jss" : " ^8.6.1" ,
3636 "react-motion" : " ^0.5.2" ,
37- "react-responsive" : " ^6.0.1" ,
3837 "react-scrollspy" : " ^3.3.5" ,
3938 "react-youtube" : " ^7.8.0" ,
4039 "redux-action-analytics" : " 0.0.3" ,
Original file line number Diff line number Diff line change 11import React , { Fragment } from 'react'
22import styled from 'styled-components'
33import { graphql , StaticQuery } from 'gatsby'
4- import MediaQuery from 'react-responsive'
54import { Button } from '@material-ui/core'
65
76import Logo from './Logo'
@@ -67,6 +66,9 @@ const MenuExpanderWrapper = styled.div`
6766 justify-content: center;
6867 margin: 1rem;
6968 margin-bottom: 0;
69+ @media only screen and (min-width: 1200px) {
70+ display: none;
71+ }
7072`
7173
7274var content2 = [
@@ -139,17 +141,15 @@ class Sidebar extends React.Component {
139141 content = content . concat ( futurePages )
140142 return (
141143 < MobileWrapperOrFragment mobileMenuOpen = { this . state . mobileMenuOpen } >
142- < MediaQuery query = "only screen and (max-width: 1200px)" >
143- < MenuExpanderWrapper >
144- < Button
145- variant = "outlined"
146- color = "primary"
147- onClick = { this . toggleMobileMenu }
148- >
149- { this . state . mobileMenuOpen ? 'Sulje valikko' : 'Vaihda sivua' }
150- </ Button >
151- </ MenuExpanderWrapper >
152- </ MediaQuery >
144+ < MenuExpanderWrapper >
145+ < Button
146+ variant = "outlined"
147+ color = "primary"
148+ onClick = { this . toggleMobileMenu }
149+ >
150+ { this . state . mobileMenuOpen ? 'Sulje valikko' : 'Vaihda sivua' }
151+ </ Button >
152+ </ MenuExpanderWrapper >
153153 < SidebarContainer mobileMenuOpen = { this . state . mobileMenuOpen } >
154154 < Brand > Ohjelmoinnin MOOC 2019</ Brand >
155155 < TreeViewContainer >
You can’t perform that action at this time.
0 commit comments