26 lines
517 B
JavaScript
26 lines
517 B
JavaScript
|
import React from 'react';
|
||
|
|
||
|
class Results extends React.Component {
|
||
|
|
||
|
componentDidMount() {
|
||
|
const categoryKey = this.props.match.params.categoryKey;
|
||
|
const searchValue = this.props.match.params.searchValue;
|
||
|
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const mapStateToProps = state => ({
|
||
|
searchResults: this.state.results.currentItems,
|
||
|
});
|
||
|
|
||
|
const mapDispatchToProps = dispatch => ({
|
||
|
searchResults: (categoryKey, searchValue) => dispatch(getSearchResults(categoryKey, searchValue)),
|
||
|
});
|
||
|
|
||
|
export default;
|