client/src/components/CategoriesTooltip.js
changeset 161 a642639dbc07
parent 143 cfcbf4bc66f1
equal deleted inserted replaced
160:183b128a4189 161:a642639dbc07
    48         <form onSubmit={ this.onSubmit }>
    48         <form onSubmit={ this.onSubmit }>
    49           <div className="form-group buttons">
    49           <div className="form-group buttons">
    50           {this.props.categories.map((category) =>
    50           {this.props.categories.map((category) =>
    51             <button type="button"
    51             <button type="button"
    52               key={ category.name }
    52               key={ category.name }
    53               className="btn btn-primary"
    53               className="btn btn-sm text-secondary"
    54               style={{ backgroundColor: category.color }}
    54               style={{ backgroundColor: category.color }}
    55               active={ this.isCategoryActive(category)  }
    55               active={ this.isCategoryActive(category)  }
    56               onClick={ this.onButtonClick.bind(this, category) }>{ category.name }</button>
    56               onClick={ this.onButtonClick.bind(this, category) }>{ category.name }</button>
    57           )}
    57           )}
    58           </div>
    58           </div>