Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Add ability to change the sort used in a search #10

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
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
9 changes: 7 additions & 2 deletions src/containers/SearchContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ const mapStateToProps = (state, ownProps) => {
page: sel.getPage(state),
isSearchPending: sel.isSearchPending(state),
isSearchComplete: sel.isSearchComplete(state),
error: sel.getSearchError(state)
error: sel.getSearchError(state),
searchOptions: sel.getSearchOptions(state),
isOptionsPending: sel.isOptionsPending(state),
sort: sel.getSort(state)
};
};

Expand All @@ -44,7 +47,9 @@ const mapDispatchToProps = (dispatch, ownProps) => {
addFilter: myActions.addFilter,
removeFilter: myActions.removeFilter,
replaceFilter: myActions.replaceFilter,
clearFilter: myActions.clearFilter
clearFilter: myActions.clearFilter,
changeSort: myActions.changeSort,
loadOptions: myActions.loadOptions
},
dispatch
);
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = {
'grove-core-react-components': 'grove-core-react-components',
react: 'react'
},
resolve: {
symlinks: false
},
module: {
rules: [
{
Expand Down