import React from 'react'; import AssetPreview from 'components/AssetPreview'; class ChannelClaimsDisplay extends React.Component { constructor (props) { super(props); this.showNextResultsPage = this.showNextResultsPage.bind(this); this.showPreviousResultsPage = this.showPreviousResultsPage.bind(this); } showNewPage (page) { console.log(`update claims data with new page ${page}`); this.props.onChannelPageUpdate(page); } showPreviousResultsPage () { const previousPage = parseInt(this.props.currentPage) - 1; this.showNewPage(previousPage); } showNextResultsPage () { const nextPage = parseInt(this.props.currentPage) + 1; this.showNewPage(nextPage); } render () { const { channel: { error, claimsData: { claims, currentPage, totalPages } } } = this.props; return (
{error}