preparing to refactor to use ids

This commit is contained in:
bill bittner 2018-02-08 15:47:10 -08:00
parent e9baab3c61
commit f38a4fb7e5
3 changed files with 18 additions and 6 deletions

View file

@ -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) {

View file

@ -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));
// },
// };
// };

View file

@ -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;