diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:01:23 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:01:23 +0100 |
| commit | 76f36c6c5dafe754b066903b1ee8ecdd1b92dcab (patch) | |
| tree | 374deb919344611e642c83926dd36a12f31f709a /client/faceSearch/faceSearch.container.js | |
| parent | 6431d06048791763f3644b3a0457cc9c4f1df6d3 (diff) | |
faceSearch client
Diffstat (limited to 'client/faceSearch/faceSearch.container.js')
| -rw-r--r-- | client/faceSearch/faceSearch.container.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/client/faceSearch/faceSearch.container.js b/client/faceSearch/faceSearch.container.js new file mode 100644 index 00000000..e5fae24b --- /dev/null +++ b/client/faceSearch/faceSearch.container.js @@ -0,0 +1,31 @@ +import React, { Component } from 'react' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' + +import * as actions from './faceSearch.actions' + +import FaceSearchQuery from './faceSearch.query' +import FaceSearchResult from './faceSearch.result' + +class FaceSearchContainer extends Component { + render() { + return ( + <div className='searchContainer'> + <FaceSearchQuery /> + <FaceSearchResult /> + </div> + ) + } +} + +const mapStateToProps = state => ({ + query: state.faceSearch.query, + result: state.faceSearch.result, + options: state.faceSearch.options, +}) + +const mapDispatchToProps = dispatch => ({ + actions: bindActionCreators({ ...actions }, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(FaceSearchContainer) |
