fix(desktop): wrong order and icon in sort list header (#3675)

This commit is contained in:
Konv Suu 2025-05-07 15:24:24 +08:00 committed by GitHub
parent ec34018725
commit 196c94ac1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -90,12 +90,12 @@ const SORT_LIST = [
{ icon: tw`i-mgc-numbers-90-sort-descending-cute-re`, by: "count", order: "desc" },
{
icon: tw`i-mgc-az-sort-descending-letters-cute-re`,
icon: tw`i-mgc-az-sort-ascending-letters-cute-re`,
by: "alphabetical",
order: "asc",
},
{
icon: tw`i-mgc-az-sort-ascending-letters-cute-re`,
icon: tw`i-mgc-az-sort-descending-letters-cute-re`,
by: "alphabetical",
order: "desc",
},
@ -130,7 +130,9 @@ const SortButton = () => {
: tw`i-mgc-numbers-90-sort-descending-cute-re`
}
icon1={
order === "asc" ? tw`i-mgc-sort-ascending-cute-re` : tw`i-mgc-sort-descending-cute-re`
order === "asc"
? tw`i-mgc-az-sort-ascending-letters-cute-re`
: tw`i-mgc-az-sort-descending-letters-cute-re`
}
status={by === "count" ? "done" : "init"}
/>