diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-12-10 11:10:05 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-12-10 11:10:05 +0100 |
commit | 7bd3b6766536e33146bb55506c79619a1ab7d3b3 (patch) | |
tree | e5e53fa944d2c86143d1924b82de504c9dc76224 /src/client/react/components | |
parent | b7fab958633456346d67c9cdd68eef05572882ab (diff) |
Move reducers and actions into seperate folders
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, |