Skip to content

Commit 2ba0fd4

Browse files
committed
improve custom-search-panel-1.js
1 parent 64a460b commit 2ba0fd4

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

examples/js/custom/search/custom-search-panel-1.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,17 @@ addProducts(5);
2525
class MySearchPanel extends React.Component {
2626
render() {
2727
return (
28-
<div className='input-group'>
29-
<span className='input-group-btn'>
30-
<button
31-
className='btn btn-primary'
32-
type='button'>
33-
CustomButton1
34-
</button>
35-
{ this.props.clearBtn }
36-
<button
37-
className='btn btn-warning'
38-
type='button'>
39-
CustomButton2
40-
</button>
41-
</span>
28+
<div>
29+
<div className='input-group'>
30+
<span className='input-group-btn'>
31+
<button
32+
className='btn btn-primary'
33+
type='button'>
34+
CustomButton1
35+
</button>
36+
{ this.props.clearBtn }
37+
</span>
38+
</div>
4239
{ this.props.searchField }
4340
</div>
4441
);

0 commit comments

Comments
 (0)