frontend/src/containers/Results.js

26 lines
517 B
JavaScript
Raw Normal View History

2018-12-13 19:04:55 +02:00
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;