Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/generics/SearcherActionButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ const SearcherActionButton = ({ onClick, startIcon, label }) => {
);
};

export default SearcherActionButton;
export default SearcherActionButton;
7 changes: 4 additions & 3 deletions src/components/generics/SearcherPane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class SearcherPane extends Component {
appliedFiltersRowStructure = null,
setAppliedFiltersRowStructure = null,
applyNumberCircle = null,
ActionButton = SearcherActionButton,
} = this.props;
return (
<StyledSearcherPane>
Expand Down Expand Up @@ -135,23 +136,23 @@ class SearcherPane extends Component {
)}
{!!actions &&
actions.map((a, idx) => (
<SearcherActionButton
<ActionButton
key={`action-${idx}`}
onClick={a.action}
startIcon={a.icon}
label={a.label || ""}
/>
))}
{!!reset && (
<SearcherActionButton
<ActionButton
key="action-reset"
startIcon={<ResetFilterIcon />}
onClick={this.debouncedReset}
label={formatMessage(this.props.intl, module, "resetFilterTooltip")}
/>
)}
{!!refresh && (
<SearcherActionButton
<ActionButton
key="action-refresh"
startIcon={<DefaultSearchIcon />}
onClick={this.debouncedRefresh}
Expand Down