2018-02-01 14:29:33 -08:00
|
|
|
import { connect } from 'react-redux';
|
2018-02-22 15:43:26 -08:00
|
|
|
import { onHandleShowPageUri } from 'actions/show';
|
2018-02-01 14:29:33 -08:00
|
|
|
import View from './view';
|
|
|
|
|
|
|
|
const mapStateToProps = ({ show }) => {
|
|
|
|
return {
|
2018-02-07 11:30:39 -08:00
|
|
|
error : show.request.error,
|
2018-02-07 10:52:09 -08:00
|
|
|
requestType: show.request.type,
|
2018-02-01 14:29:33 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-02-14 11:39:24 -08:00
|
|
|
const mapDispatchToProps = {
|
2018-02-22 15:43:26 -08:00
|
|
|
onHandleShowPageUri,
|
2018-02-01 14:29:33 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(View);
|