From f698680c156d39080b510a78d38c8716a909edfd Mon Sep 17 00:00:00 2001 From: jessop Date: Wed, 25 Sep 2019 17:37:01 -0400 Subject: [PATCH] uri to url --- src/ui/page/fileListDownloaded/index.js | 6 +++--- src/ui/page/fileListDownloaded/view.jsx | 12 ++++++------ src/ui/page/fileListPublished/index.js | 6 +++--- src/ui/page/fileListPublished/view.jsx | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/ui/page/fileListDownloaded/index.js b/src/ui/page/fileListDownloaded/index.js index 615916d62..8b3e1a2ff 100644 --- a/src/ui/page/fileListDownloaded/index.js +++ b/src/ui/page/fileListDownloaded/index.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { makeSelectDownloadUrisForPage, selectDownloadUrisCount, selectIsFetchingFileList } from 'lbry-redux'; +import { makeSelectDownloadUrlsForPage, selectDownloadUrlsCount, selectIsFetchingFileList } from 'lbry-redux'; import FileListDownloaded from './view'; import { withRouter } from 'react-router'; @@ -9,8 +9,8 @@ const select = (state, props) => { const page = Number(urlParams.get('page')) || 1; return { page, - downloadedUris: makeSelectDownloadUrisForPage(page)(state), - downloadedUrisCount: selectDownloadUrisCount(state), + downloadedUrls: makeSelectDownloadUrlsForPage(page)(state), + downloadedUrlsCount: selectDownloadUrlsCount(state), fetching: selectIsFetchingFileList(state), }; }; diff --git a/src/ui/page/fileListDownloaded/view.jsx b/src/ui/page/fileListDownloaded/view.jsx index bb3cc0611..6a2f6d50f 100644 --- a/src/ui/page/fileListDownloaded/view.jsx +++ b/src/ui/page/fileListDownloaded/view.jsx @@ -7,15 +7,15 @@ import { PAGE_SIZE } from 'constants/claim'; type Props = { fetching: boolean, - downloadedUris: Array, - downloadedUrisCount: ?number, + downloadedUrls: Array, + downloadedUrlsCount: ?number, history: { replace: string => void }, page: number, }; function FileListDownloaded(props: Props) { - const { fetching, downloadedUris, downloadedUrisCount } = props; - const hasDownloads = !!downloadedUris.length; + const { fetching, downloadedUrls, downloadedUrlsCount } = props; + const hasDownloads = !!downloadedUrls.length; return ( // Removed the wapper to try combining this page with UserHistory // This should eventually move into /components if we want to keep it this way @@ -26,10 +26,10 @@ function FileListDownloaded(props: Props) { header={__('Your Library')} defaultSort persistedStorageKey="claim-list-downloaded" - uris={downloadedUris} + uris={downloadedUrls} loading={fetching} /> - + ) : (
diff --git a/src/ui/page/fileListPublished/index.js b/src/ui/page/fileListPublished/index.js index 4f40b7202..89ba93d41 100644 --- a/src/ui/page/fileListPublished/index.js +++ b/src/ui/page/fileListPublished/index.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { selectIsFetchingClaimListMine, makeSelectMyStreamUrisForPage, selectMyStreamUrisCount } from 'lbry-redux'; +import { selectIsFetchingClaimListMine, makeSelectMyStreamUrlsForPage, selectMyStreamUrlsCount } from 'lbry-redux'; import { doCheckPendingPublishesApp } from 'redux/actions/publish'; import FileListPublished from './view'; import { withRouter } from 'react-router'; @@ -10,8 +10,8 @@ const select = (state, props) => { const page = Number(urlParams.get('page')) || 1; return { page, - uris: makeSelectMyStreamUrisForPage(page)(state), - uriTotal: selectMyStreamUrisCount(state), + urls: makeSelectMyStreamUrlsForPage(page)(state), + urlTotal: selectMyStreamUrlsCount(state), fetching: selectIsFetchingClaimListMine(state), }; }; diff --git a/src/ui/page/fileListPublished/view.jsx b/src/ui/page/fileListPublished/view.jsx index 7e7d42085..49eb604ab 100644 --- a/src/ui/page/fileListPublished/view.jsx +++ b/src/ui/page/fileListPublished/view.jsx @@ -9,31 +9,31 @@ import { PAGE_SIZE } from 'constants/claim'; type Props = { checkPendingPublishes: () => void, fetching: boolean, - uris: Array, - uriTotal: ?number, + urls: Array, + urlTotal: ?number, history: { replace: string => void }, page: number, }; function FileListPublished(props: Props) { - const { checkPendingPublishes, fetching, uris, uriTotal } = props; + const { checkPendingPublishes, fetching, urls, urlTotal } = props; useEffect(() => { checkPendingPublishes(); }, [checkPendingPublishes]); return ( - {uris && uris.length ? ( + {urls && urls.length ? (
} /> - +
) : (