diff -r 56850f5c73f6 -r cfcbf4bc66f1 client/src/components/CategoriesTooltip.js --- a/client/src/components/CategoriesTooltip.js Wed Jul 18 17:32:09 2018 +0200 +++ b/client/src/components/CategoriesTooltip.js Tue Aug 14 20:34:50 2018 +0200 @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import { FormGroup, FormControl, Button } from 'react-bootstrap'; class CategoriesTooltip extends Component { @@ -47,20 +46,22 @@ return (
- +
{this.props.categories.map((category) => - + onClick={ this.onButtonClick.bind(this, category) }>{ category.name } )} - +
{this.state.showCommentControl && - - { this.commentControl = ref; }} /> - } +
+ { this.commentControl = ref; }} + ref={(commentControl) => { this.commentControl = commentControl; }}/> +
}
);