import React, { Component } from 'react'; import { drizzleConnect } from 'drizzle-react'; import PropTypes from 'prop-types'; import { Image, Menu } from 'semantic-ui-react' class NavBar extends Component { constructor(props){ super(props); this.handleItemClick = this.handleItemClick.bind(this); this.navRef = React.createRef(); } handleItemClick(to) { this.context.router.push(to); } render() { return (
); } }; NavBar.contextTypes = { router: PropTypes.object }; const mapStateToProps = state => { return { hasSignedUp: state.user.hasSignedUp, navBarTitle: state.interface.navBarTitle } }; export default drizzleConnect(NavBar, mapStateToProps);