lint fixes

This commit is contained in:
Jeremy Kauffman 2019-10-27 10:41:43 -04:00 committed by Sean Yesmunt
parent 2b0a35717d
commit 7372f5dff9
5 changed files with 9 additions and 5 deletions

View file

@ -128,7 +128,7 @@
"husky": "^0.14.3",
"json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#4aa1f6f379061becf4485380416ec00faed3be6c",
"lbry-redux": "lbryio/lbry-redux#e5440ba86078dcdfced490bc444810c8f57dc774",
"lbryinc": "lbryio/lbryinc#061c782ff44b359b04aeaecf8b86431fabb069e0",
"lint-staged": "^7.0.2",
"localforage": "^1.7.1",

View file

@ -69,6 +69,7 @@ function ChannelContent(props: Props) {
{hasContent && !channelIsBlocked && !channelIsBlackListed && (
<ClaimList header={false} uris={claimsInChannel.map(claim => claim && claim.canonical_url)} />
)}
{!channelIsBlocked && !channelIsBlackListed && (
<Paginate
onPageChange={page => fetchClaims(uri, page)}

View file

@ -27,7 +27,9 @@ function Paginate(props: Props) {
}
if (currentPage !== newPageNumber) {
history.push(`?${PAGINATE_PARAM}=${newPageNumber}`);
const params = new URLSearchParams(search);
params.set(PAGINATE_PARAM, newPageNumber.toString());
history.push('?' + params.toString());
}
}

View file

@ -17,7 +17,7 @@ type Props = {
downloadedUrlsCount: ?number,
history: { replace: string => void },
page: number,
query: string
query: string,
};
function FileListDownloaded(props: Props) {
@ -50,6 +50,7 @@ function FileListDownloaded(props: Props) {
onChange={handleInputChange}
value={query}
type="text"
name="query"
placeholder={__('Search')}
/>
</Form>

View file

@ -6848,9 +6848,9 @@ lazy-val@^1.0.3, lazy-val@^1.0.4:
yargs "^13.2.2"
zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#4aa1f6f379061becf4485380416ec00faed3be6c:
lbry-redux@lbryio/lbry-redux#e5440ba86078dcdfced490bc444810c8f57dc774:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/4aa1f6f379061becf4485380416ec00faed3be6c"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/e5440ba86078dcdfced490bc444810c8f57dc774"
dependencies:
proxy-polyfill "0.1.6"
reselect "^3.0.0"