Skip to content

Commit 151e331

Browse files
authored
Merge pull request #92 from appirio-tech/fix-typeahead
Project search clean up and switch button fix
2 parents 4a842b8 + b6a0102 commit 151e331

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

components/SearchBar/SearchBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class SearchBar extends Component {
212212
}
213213

214214
SearchBar.propTypes = {
215-
hideSuggestionsWhenEmpty: PropTypes.func.bool,
215+
hideSuggestionsWhenEmpty: PropTypes.bool,
216216
onSearch : PropTypes.func.isRequired,
217217
onClearSearch : PropTypes.func,
218218
onTermChange : PropTypes.func.isRequired,

components/SearchSuggestions/SearchSuggestions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SearchSuggestions extends Component {
5656

5757
const recentSearches = !recentList ? '' : (
5858
<div className="recent-search-suggestions">
59-
<Panel>
59+
<Panel showHeader={this.props.showPopularSearchHeader}>
6060
<div className="panel-header">
6161
<div className="label">Recent Search</div>
6262
<div className="recent-search-panel-actions transition">

components/SwitchButton/SwitchButton.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.SwitchButton {
44
position: relative;
55
display: flex;
6+
align-items: center;
67
.label{
78
width: 92px;
89
line-height: 20px;
@@ -11,9 +12,9 @@
1112
color: $tc-gray-60;
1213
}
1314
label{
15+
display: flex;
1416
margin: 0;
1517
padding: 0;
16-
display: block;
1718
height: 20px;
1819
margin-top: 5px;
1920
}

0 commit comments

Comments
 (0)