about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose/containers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-04-20 19:18:26 +0200
committerThibG <thib@sitedethib.com>2019-04-22 20:15:47 +0200
commit149aa07409ef7cd17098a28510e515530b173f13 (patch)
treeead455b38f8881e13a00253fb60b8f9873614454 /app/javascript/flavours/glitch/features/compose/containers
parent67771e6d65ea209dcb9156a7495b7ef64c1a762b (diff)
DrawerResults → SearchResults + SearchResultsContainer
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose/containers')
-rw-r--r--app/javascript/flavours/glitch/features/compose/containers/search_results_container.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/containers/search_results_container.js b/app/javascript/flavours/glitch/features/compose/containers/search_results_container.js
new file mode 100644
index 000000000..16d95d417
--- /dev/null
+++ b/app/javascript/flavours/glitch/features/compose/containers/search_results_container.js
@@ -0,0 +1,8 @@
+import { connect } from 'react-redux';
+import SearchResults from '../components/search_results';
+
+const mapStateToProps = state => ({
+  results: state.getIn(['search', 'results']),
+});
+
+export default connect(mapStateToProps)(SearchResults);