diff options
Diffstat (limited to 'src/client/react/components')
-rw-r--r-- | src/client/react/components/container/Search.js | 6 | ||||
-rw-r--r-- | src/client/react/components/presentational/Search.jsx (renamed from src/client/react/components/presentational/Search.js) | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/react/components/container/Search.js b/src/client/react/components/container/Search.js index 0722128..ddfb0a6 100644 --- a/src/client/react/components/container/Search.js +++ b/src/client/react/components/container/Search.js @@ -1,10 +1,10 @@ import { connect } from 'react-redux'; -import { type } from '../../actions'; +import { type } from '../../actions/search'; import PresentationalSearch from '../presentational/Search'; const mapStateToProps = state => ({ - results: state.searchResults, - value: state.searchInput, + results: state.search.searchResults, + value: state.search.searchInput, }); const mapDispatchToProps = dispatch => ({ diff --git a/src/client/react/components/presentational/Search.js b/src/client/react/components/presentational/Search.jsx index f75e612..1e00192 100644 --- a/src/client/react/components/presentational/Search.js +++ b/src/client/react/components/presentational/Search.jsx @@ -16,7 +16,7 @@ const Search = ({ onType, value, results }) => ( Search.propTypes = { onType: PropTypes.func.isRequired, - value: PropTypes.func.isRequired, + value: PropTypes.string.isRequired, results: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string.require, type: PropTypes.string.require, |