Skip to content

Commit

Permalink
Undo changes to search bar example.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Mar 7, 2018
1 parent 083ae96 commit a55420b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src-docs/src/views/search_bar/search_bar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component, Fragment } from 'react';

import {
EuiButton,
EuiHealth,
EuiCallOut,
EuiSpacer,
Expand Down Expand Up @@ -106,22 +105,6 @@ export class SearchBar extends Component {
this.setState(prevState => ({ incremental: !prevState.incremental }));
};

renderToolsLeft() {
return null;
return [
<EuiButton
key="deleteButton"
iconType="trash"
color="danger"
onClick={()=> {
store.deleteUsers(this.state.selection.map(user => user.id));
}}
>
Delete items
</EuiButton>
];
}

renderSearch() {
const {
incremental,
Expand Down Expand Up @@ -158,7 +141,6 @@ export class SearchBar extends Component {

return (
<EuiSearchBar
toolsLeft={this.renderToolsLeft()}
defaultQuery={initialQuery}
box={{
placeholder: 'e.g. type:visualization -is:active joe',
Expand Down

0 comments on commit a55420b

Please sign in to comment.