diff --git a/src/App.js b/src/App.js index bd606a614..f5859310d 100644 --- a/src/App.js +++ b/src/App.js @@ -18,23 +18,32 @@ export class App extends Component { ]).isRequired } + state = { + isNavOpen: true + } + + onToggleNavbar = () => { + this.setState(s => ({isNavOpen: !s.isNavOpen})) + } + componentWillMount () { this.props.doInitIpfs() } render () { const Page = this.props.route + const {isNavOpen} = this.state return (