Skip to content

Commit

Permalink
Fixed a bug where clicking on each menu item triggered an 'OPEN_VISUA…
Browse files Browse the repository at this point in the history
…LIZATION' action
  • Loading branch information
Kamil Mrzygłód committed Sep 15, 2017
1 parent 122a4e5 commit 1308aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/SideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default class SideMenu extends Component {

render() {
return (
<Menu fixed="left" icon inverted vertical className={styles.sideMenu} onClick={() => this.props.openVisualization()}>
<Menu fixed="left" icon inverted vertical className={styles.sideMenu}>
<Popup
trigger={<Menu.Item active={this.props.currentView === '/'}>
trigger={<Menu.Item active={this.props.currentView === '/'} onClick={() => this.props.openVisualization()}>
<Link to="/"><Icon name="cloud" size="big" /></Link>
</Menu.Item>}
content="Visualization"
Expand Down

0 comments on commit 1308aa5

Please sign in to comment.