remove sort controls from library/publishes
This commit is contained in:
parent
c3874e4de2
commit
6e38cb5ded
5 changed files with 6 additions and 12 deletions
|
@ -128,7 +128,7 @@
|
||||||
"husky": "^0.14.3",
|
"husky": "^0.14.3",
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
"lbry-format": "https://github.com/lbryio/lbry-format.git",
|
"lbry-format": "https://github.com/lbryio/lbry-format.git",
|
||||||
"lbry-redux": "lbryio/lbry-redux#f02c6b7a2719ceead03f1c45b4bbf26b2069a20e",
|
"lbry-redux": "lbryio/lbry-redux#64383d57873ce59dea9df7216ee6cf52c4e95dc6",
|
||||||
"lbryinc": "lbryio/lbryinc#d250096a6fc5df16be4f82812ecce28d6e558b6e",
|
"lbryinc": "lbryio/lbryinc#d250096a6fc5df16be4f82812ecce28d6e558b6e",
|
||||||
"lint-staged": "^7.0.2",
|
"lint-staged": "^7.0.2",
|
||||||
"localforage": "^1.7.1",
|
"localforage": "^1.7.1",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
import * as PAGES from 'constants/pages';
|
import * as PAGES from 'constants/pages';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { Route, Redirect, Switch, withRouter } from 'react-router-dom';
|
import { Route, Switch, withRouter } from 'react-router-dom';
|
||||||
import SettingsPage from 'page/settings';
|
import SettingsPage from 'page/settings';
|
||||||
import HelpPage from 'page/help';
|
import HelpPage from 'page/help';
|
||||||
import ReportPage from 'page/report';
|
import ReportPage from 'page/report';
|
||||||
|
@ -35,15 +35,11 @@ type Props = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function AppRouter(props: Props) {
|
function AppRouter(props: Props) {
|
||||||
const { currentScroll, location } = props;
|
const { currentScroll } = props;
|
||||||
const { pathname, search } = location;
|
|
||||||
|
|
||||||
// Don't update the scroll position if only the `page` param changes
|
|
||||||
const url = `${pathname}${search.replace(/&?\??page=\d+/, '')}`;
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.scrollTo(0, currentScroll);
|
window.scrollTo(0, currentScroll);
|
||||||
}, [currentScroll, url]);
|
}, [currentScroll]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Switch>
|
<Switch>
|
||||||
|
|
|
@ -24,7 +24,6 @@ function FileListDownloaded(props: Props) {
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<ClaimList
|
<ClaimList
|
||||||
header={__('Your Library')}
|
header={__('Your Library')}
|
||||||
defaultSort
|
|
||||||
persistedStorageKey="claim-list-downloaded"
|
persistedStorageKey="claim-list-downloaded"
|
||||||
uris={downloadedUrls}
|
uris={downloadedUrls}
|
||||||
loading={fetching}
|
loading={fetching}
|
||||||
|
|
|
@ -30,7 +30,6 @@ function FileListPublished(props: Props) {
|
||||||
loading={fetching}
|
loading={fetching}
|
||||||
persistedStorageKey="claim-list-published"
|
persistedStorageKey="claim-list-published"
|
||||||
uris={urls}
|
uris={urls}
|
||||||
defaultSort
|
|
||||||
headerAltControls={<Button button="link" label={__('New Publish')} navigate="/$/publish" />}
|
headerAltControls={<Button button="link" label={__('New Publish')} navigate="/$/publish" />}
|
||||||
/>
|
/>
|
||||||
<Paginate totalPages={Math.ceil(Number(urlTotal) / Number(PAGE_SIZE))} loading={fetching} />
|
<Paginate totalPages={Math.ceil(Number(urlTotal) / Number(PAGE_SIZE))} loading={fetching} />
|
||||||
|
|
|
@ -6894,9 +6894,9 @@ lazy-val@^1.0.3, lazy-val@^1.0.4:
|
||||||
yargs "^13.2.2"
|
yargs "^13.2.2"
|
||||||
zstd-codec "^0.1.1"
|
zstd-codec "^0.1.1"
|
||||||
|
|
||||||
lbry-redux@lbryio/lbry-redux#f02c6b7a2719ceead03f1c45b4bbf26b2069a20e:
|
lbry-redux@lbryio/lbry-redux#64383d57873ce59dea9df7216ee6cf52c4e95dc6:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/f02c6b7a2719ceead03f1c45b4bbf26b2069a20e"
|
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/64383d57873ce59dea9df7216ee6cf52c4e95dc6"
|
||||||
dependencies:
|
dependencies:
|
||||||
proxy-polyfill "0.1.6"
|
proxy-polyfill "0.1.6"
|
||||||
reselect "^3.0.0"
|
reselect "^3.0.0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue