Discovery fixes #2576
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ type Props = {
|
||||||
export default function ClaimList(props: Props) {
|
export default function ClaimList(props: Props) {
|
||||||
const { uris, headerAltControls, injectedItem, loading, persistedStorageKey, empty, meta, type, header } = props;
|
const { uris, headerAltControls, injectedItem, loading, persistedStorageKey, empty, meta, type, header } = props;
|
||||||
const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW);
|
const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW);
|
||||||
const sortedUris = uris && currentSort === SORT_OLD ? uris.reverse() : uris;
|
const sortedUris = uris && currentSort === SORT_NEW ? uris.slice().reverse() : uris;
|
||||||
const hasUris = uris && !!uris.length;
|
const hasUris = uris && !!uris.length;
|
||||||
|
|
||||||
function handleSortChange() {
|
function handleSortChange() {
|
||||||
|
|
Loading…
Reference in a new issue