import React, { Fragment } from 'react'; import { NavLink } from 'react-router-dom'; import { Logo } from './components/logo'; import { User } from './models/user'; import './header.css'; interface HeaderProps { user: User; animateLogo: boolean; } interface HeaderState { collapseMenu: boolean; } /** * Render the main header using a responsive design */ class Header extends React.Component { constructor(props) { super(props); this.state = {collapseMenu: true}; this.handleClick = this.handleClick.bind(this); this.handleNavigate = this.handleNavigate.bind(this); } handleClick() { this.setState(state => ({ collapseMenu: !state.collapseMenu })); } handleNavigate() { this.setState({ collapseMenu: true }); } render() { return (
); } } export default Header;