diff --git a/src/renderer/page/channel/index.js b/src/renderer/page/channel/index.js index f0415523e..c5126c07f 100644 --- a/src/renderer/page/channel/index.js +++ b/src/renderer/page/channel/index.js @@ -7,6 +7,7 @@ import { makeSelectCurrentParam, makeSelectClaimIsMine, selectCurrentParams, + doNotify, } from 'lbry-redux'; import { doNavigate } from 'redux/actions/navigation'; import { makeSelectTotalPagesForChannel } from 'redux/selectors/content'; @@ -26,6 +27,7 @@ const perform = dispatch => ({ fetchClaims: (uri, page) => dispatch(doFetchClaimsByChannel(uri, page)), fetchClaimCount: uri => dispatch(doFetchClaimCountByChannel(uri)), navigate: (path, params) => dispatch(doNavigate(path, params)), + openModal: (modal, props) => dispatch(doNotify(modal, props)), }); export default connect( diff --git a/src/renderer/page/channel/view.jsx b/src/renderer/page/channel/view.jsx index 5638c4172..c09c9f850 100644 --- a/src/renderer/page/channel/view.jsx +++ b/src/renderer/page/channel/view.jsx @@ -4,11 +4,13 @@ import BusyIndicator from 'component/common/busy-indicator'; import { FormField, FormRow } from 'component/common/form'; import ReactPaginate from 'react-paginate'; import SubscribeButton from 'component/subscribeButton'; -import ViewOnWebButton from 'component/viewOnWebButton'; import Page from 'component/page'; import FileList from 'component/fileList'; import HiddenNsfwClaims from 'component/hiddenNsfwClaims'; import type { Claim } from 'types/claim'; +import Button from 'component/button'; +import { MODALS } from 'lbry-redux'; +import * as icons from 'constants/icons'; type Props = { uri: string, @@ -22,6 +24,7 @@ type Props = { fetchClaims: (string, number) => void, fetchClaimCount: string => void, navigate: (string, {}) => void, + openModal: ({ id: string }, { uri: string }) => void, }; class ChannelPage extends React.PureComponent { @@ -67,10 +70,18 @@ class ChannelPage extends React.PureComponent { } render() { - const { uri, fetching, claimsInChannel, claim, page, totalPages, channelIsMine } = this.props; - const { name, permanent_url: permanentUrl, claim_id: claimId } = claim; + const { + uri, + fetching, + claimsInChannel, + claim, + page, + totalPages, + channelIsMine, + openModal, + } = this.props; + const { name, permanent_url: permanentUrl } = claim; const currentPage = parseInt((page || 1) - 1, 10); - const contentList = claimsInChannel && claimsInChannel.length ? ( @@ -88,7 +99,12 @@ class ChannelPage extends React.PureComponent {
- +
{contentList}
{(!fetching || (claimsInChannel && claimsInChannel.length)) &&