about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/compose/containers/search_container.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-03-31 19:59:54 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-03-31 21:11:09 +0200
commitb4046c5957f16437910cdfe1ab45ee818118e7d7 (patch)
tree0d6d394a4c4f0401aa198c2410a8479d4f199958 /app/assets/javascripts/components/features/compose/containers/search_container.jsx
parent553e6dd07cec7c74083841dd572269cbaa66dffb (diff)
Rework search
Diffstat (limited to 'app/assets/javascripts/components/features/compose/containers/search_container.jsx')
-rw-r--r--app/assets/javascripts/components/features/compose/containers/search_container.jsx17
1 files changed, 8 insertions, 9 deletions
diff --git a/app/assets/javascripts/components/features/compose/containers/search_container.jsx b/app/assets/javascripts/components/features/compose/containers/search_container.jsx
index 17a68f2fc..96709215a 100644
--- a/app/assets/javascripts/components/features/compose/containers/search_container.jsx
+++ b/app/assets/javascripts/components/features/compose/containers/search_container.jsx
@@ -1,14 +1,13 @@
 import { connect } from 'react-redux';
 import {
   changeSearch,
-  clearSearchSuggestions,
-  fetchSearchSuggestions,
-  resetSearch
+  clearSearch,
+  submitSearch,
+  showSearch
 } from '../../../actions/search';
 import Search from '../components/search';
 
 const mapStateToProps = state => ({
-  suggestions: state.getIn(['search', 'suggestions']),
   value: state.getIn(['search', 'value'])
 });
 
@@ -19,15 +18,15 @@ const mapDispatchToProps = dispatch => ({
   },
 
   onClear () {
-    dispatch(clearSearchSuggestions());
+    dispatch(clearSearch());
   },
 
-  onFetch (value) {
-    dispatch(fetchSearchSuggestions(value));
+  onSubmit () {
+    dispatch(submitSearch());
   },
 
-  onReset () {
-    dispatch(resetSearch());
+  onShow () {
+    dispatch(showSearch());
   }
 
 });