mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 06:09:21 +01:00
Default density sort to desc
This commit is contained in:
parent
0fd378811f
commit
641d22a7cc
1 changed files with 5 additions and 4 deletions
|
@ -1088,10 +1088,11 @@ function Catchup() {
|
||||||
checked={sortBy === key}
|
checked={sortBy === key}
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
setSortBy(key);
|
setSortBy(key);
|
||||||
const order =
|
const order = /(replies|favourites|reblogs)/.test(
|
||||||
/(replies|favourites|reblogs|density)/.test(key)
|
key,
|
||||||
? 'desc'
|
)
|
||||||
: 'asc';
|
? 'desc'
|
||||||
|
: 'asc';
|
||||||
setSortOrder(order);
|
setSortOrder(order);
|
||||||
}}
|
}}
|
||||||
// disabled={key === 'account' && selectedAuthor}
|
// disabled={key === 'account' && selectedAuthor}
|
||||||
|
|
Loading…
Reference in a new issue