+
+
state.releases,
+ (releases) => {
+ const {
+ searchQuery: defaultSearchQuery,
+ searchIndexerIds: defaultIndexerIds,
+ searchCategories: defaultCategories
+ } = releases.defaults;
+
+ return {
+ defaultSearchQuery,
+ defaultIndexerIds,
+ defaultCategories
+ };
+ }
+ );
+}
+
+const mapDispatchToProps = {
+ setSearchDefault
+};
+
+class SearchFooterConnector extends Component {
+
+ //
+ // Listeners
+
+ onInputChange = ({ name, value }) => {
+ console.log(name, value);
+ this.props.setSearchDefault({ [name]: value });
+ }
+
+ //
+ // Render
+
+ render() {
+ return (
+
+ );
+ }
+}
+
+SearchFooterConnector.propTypes = {
+ setSearchDefault: PropTypes.func.isRequired
+};
+
+export default connect(createMapStateToProps, mapDispatchToProps)(SearchFooterConnector);
diff --git a/frontend/src/Search/SearchIndex.js b/frontend/src/Search/SearchIndex.js
index 6133ea202..ff460f910 100644
--- a/frontend/src/Search/SearchIndex.js
+++ b/frontend/src/Search/SearchIndex.js
@@ -21,7 +21,7 @@ import translate from 'Utilities/String/translate';
import SearchIndexFilterMenu from './Menus/SearchIndexFilterMenu';
import SearchIndexSortMenu from './Menus/SearchIndexSortMenu';
import NoSearchResults from './NoSearchResults';
-import SearchFooter from './SearchFooter.js';
+import SearchFooterConnector from './SearchFooterConnector';
import SearchIndexTableConnector from './Table/SearchIndexTableConnector';
import styles from './SearchIndex.css';
@@ -290,7 +290,7 @@ class SearchIndex extends Component {
}
-