client/src/components/SlateEditor/CategoriesTooltip.js
changeset 172 4b780ebbedc6
parent 168 ea92f4fe783d
equal deleted inserted replaced
171:03334a31130a 172:4b780ebbedc6
    50           {this.props.categories.map((category) =>
    50           {this.props.categories.map((category) =>
    51             <button type="button"
    51             <button type="button"
    52               key={ category.key }
    52               key={ category.key }
    53               className="btn btn-sm text-secondary"
    53               className="btn btn-sm text-secondary"
    54               style={{ backgroundColor: category.color }}
    54               style={{ backgroundColor: category.color }}
    55               active={ this.isCategoryActive(category)  }
       
    56               onClick={ this.onButtonClick.bind(this, category) }>{ category.name }</button>
    55               onClick={ this.onButtonClick.bind(this, category) }>{ category.name }</button>
    57           )}
    56           )}
    58           </div>
    57           </div>
    59           {this.state.showCommentControl &&
    58           {this.state.showCommentControl &&
    60           <div className="form-group">
    59           <div className="form-group">