preparing to refactor to use ids
This commit is contained in:
parent
e9baab3c61
commit
f38a4fb7e5
3 changed files with 18 additions and 6 deletions
|
@ -122,6 +122,20 @@ export function clearShowChannel () {
|
|||
};
|
||||
};
|
||||
|
||||
// update channel data
|
||||
|
||||
// export function updateChannelClaims () {
|
||||
// return {
|
||||
// type: actions.CHANNEL_LIST_UPDATE, // updates claims in channel in channel list
|
||||
// }
|
||||
// }
|
||||
|
||||
// export function updateShowChannelClaims () {
|
||||
// return {
|
||||
// type: actions.SHOW_CHANNEL_CLAIMS_UPDATE, // update claims in show channel
|
||||
// }
|
||||
// }
|
||||
|
||||
// add channels to channel list
|
||||
|
||||
export function addNewChannelToChannelList (id, error, channelData, claimsData) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { connect } from 'react-redux';
|
||||
import { updateChannelClaimsData } from 'actions/show';
|
||||
import { } from 'actions/show';
|
||||
import View from './view';
|
||||
|
||||
const mapStateToProps = ({ show : { showChannel: { error, channelData, claimsData } } }) => {
|
||||
|
@ -16,11 +16,8 @@ const mapStateToProps = ({ show : { showChannel: { error, channelData, claimsDat
|
|||
|
||||
// const mapDispatchToProps = dispatch => {
|
||||
// return {
|
||||
// onChannelClaimsDataUpdate: (claims, currentPage, totalPages, totalClaims) => {
|
||||
// dispatch(updateChannelClaimsData(claims, currentPage, totalPages, totalClaims));
|
||||
// },
|
||||
// onChannelClaimsDataClear: () => {
|
||||
// dispatch(updateChannelClaimsData(null, null, null, null));
|
||||
// onChannelPageUpdate: (channelRecordId, name, longId, page) => {
|
||||
// dispatch(updateChannelClaims(channelRecordId, name, longId, page));
|
||||
// },
|
||||
// };
|
||||
// };
|
||||
|
|
|
@ -9,6 +9,7 @@ class ChannelClaimsDisplay extends React.Component {
|
|||
}
|
||||
showNewPage (page) {
|
||||
console.log(`update claims data with new page ${page}`);
|
||||
this.props.onChannelPageUpdate(page);
|
||||
}
|
||||
showPreviousResultsPage () {
|
||||
const previousPage = parseInt(this.props.currentPage) - 1;
|
||||
|
|
Loading…
Reference in a new issue