switched show and channel components back to inernal state
This commit is contained in:
parent
1cbe9edf21
commit
7600ff5c54
14 changed files with 147 additions and 219 deletions
react/containers/ChannelClaimsDisplay
|
@ -1,24 +0,0 @@
|
|||
import { connect } from 'react-redux';
|
||||
import View from './view';
|
||||
import {updateChannelClaimsData} from 'actions/show';
|
||||
|
||||
const mapStateToProps = ({ show }) => {
|
||||
return {
|
||||
name : show.channelData.name,
|
||||
longId : show.channelData.longId,
|
||||
claims : show.channelClaimsData.claims,
|
||||
currentPage: show.channelClaimsData.currentPage,
|
||||
totalPages : show.channelClaimsData.totalPages,
|
||||
totalClaims: show.channelClaimsData.totalClaims,
|
||||
};
|
||||
};
|
||||
|
||||
const mapDispatchToProps = dispatch => {
|
||||
return {
|
||||
onClaimsDataChange: (claims, currentPage, totalPages, totalClaims) => {
|
||||
dispatch(updateChannelClaimsData(claims, currentPage, totalPages, totalClaims));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(View);
|
Loading…
Add table
Add a link
Reference in a new issue