Add clear button to search box

This commit is contained in:
Robbie Antenesse 2017-12-22 12:19:40 -07:00
parent 28a3f28fc3
commit d93f86f75f
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ export class SearchBox extends Component {
<i className='fa fa-search' />
</span>
</div>
<div className='control'>
<a className='button' onClick={() => this.setState({ searchTerm: '' }, () => this.search())}>
Clear
</a>
</div>
</div>
{ this.showFilterOptions() }