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
|
// add channels to channel list
|
||||||
|
|
||||||
export function addNewChannelToChannelList (id, error, channelData, claimsData) {
|
export function addNewChannelToChannelList (id, error, channelData, claimsData) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { updateChannelClaimsData } from 'actions/show';
|
import { } from 'actions/show';
|
||||||
import View from './view';
|
import View from './view';
|
||||||
|
|
||||||
const mapStateToProps = ({ show : { showChannel: { error, channelData, claimsData } } }) => {
|
const mapStateToProps = ({ show : { showChannel: { error, channelData, claimsData } } }) => {
|
||||||
|
@ -16,11 +16,8 @@ const mapStateToProps = ({ show : { showChannel: { error, channelData, claimsDat
|
||||||
|
|
||||||
// const mapDispatchToProps = dispatch => {
|
// const mapDispatchToProps = dispatch => {
|
||||||
// return {
|
// return {
|
||||||
// onChannelClaimsDataUpdate: (claims, currentPage, totalPages, totalClaims) => {
|
// onChannelPageUpdate: (channelRecordId, name, longId, page) => {
|
||||||
// dispatch(updateChannelClaimsData(claims, currentPage, totalPages, totalClaims));
|
// dispatch(updateChannelClaims(channelRecordId, name, longId, page));
|
||||||
// },
|
|
||||||
// onChannelClaimsDataClear: () => {
|
|
||||||
// dispatch(updateChannelClaimsData(null, null, null, null));
|
|
||||||
// },
|
// },
|
||||||
// };
|
// };
|
||||||
// };
|
// };
|
||||||
|
|
|
@ -9,6 +9,7 @@ class ChannelClaimsDisplay extends React.Component {
|
||||||
}
|
}
|
||||||
showNewPage (page) {
|
showNewPage (page) {
|
||||||
console.log(`update claims data with new page ${page}`);
|
console.log(`update claims data with new page ${page}`);
|
||||||
|
this.props.onChannelPageUpdate(page);
|
||||||
}
|
}
|
||||||
showPreviousResultsPage () {
|
showPreviousResultsPage () {
|
||||||
const previousPage = parseInt(this.props.currentPage) - 1;
|
const previousPage = parseInt(this.props.currentPage) - 1;
|
||||||
|
|
Loading…
Reference in a new issue