import React from 'react'; import Toolbar from '@material-ui/core/Toolbar'; import AppBar from '@material-ui/core/AppBar'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import ClickAwayListener from '@material-ui/core/ClickAwayListener'; import Grow from '@material-ui/core/Grow'; import Paper from '@material-ui/core/Paper'; import Popper from '@material-ui/core/Popper'; import MenuItem from '@material-ui/core/MenuItem'; import MenuList from '@material-ui/core/MenuList'; import MenuIcon from '@material-ui/icons/Menu'; import { Link } from 'react-router-dom'; class MyToolbar extends React.Component { state = { open: false, }; handleToggle = () => { this.setState(state => ({ open: !state.open })); }; handleClose = event => { if (this.anchorEl.contains(event.target)) { return; } this.setState({ open: false }); }; render() { return (
CCC Spaces
{ this.anchorEl = node; }} aria-owns={this.state.open ? 'menu-list-grow' : undefined} aria-haspopup="true" onClick={this.handleToggle} > {({ TransitionProps, placement }) => ( window.location.href = '/'} containerElement={} > Events window.location.href = '/list'} containerElement={} > Spaces window.location.href = '/services'} containerElement={} > Services window.location.href = 'http://ccc.de/de/imprint'} > Impressum )}
); } } export default MyToolbar;