mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: gray sort buttons
This commit is contained in:
1 parent
9f244452da
commit
52cb73a575
1 file changed
+3
-2
@@ -154,6 +154,7 @@ export default function Page() {
|
||||
}}
|
||||
>
|
||||
<IconButton
|
||||
color={sorting?.by === name ? undefined : 'gray'}
|
||||
variant="ghost"
|
||||
onClick={() => {
|
||||
mutateCompareTemporary((draft) => {
|
||||
@@ -185,8 +186,8 @@ export default function Page() {
|
||||
)}
|
||||
{sorting?.by === name && (
|
||||
<>
|
||||
{sorting.direction === 'ascending' && <CaretLeftIcon />}
|
||||
{sorting.direction === 'descending' && <CaretRightIcon />}
|
||||
{sorting.direction === 'ascending' && <CaretRightIcon />}
|
||||
{sorting.direction === 'descending' && <CaretLeftIcon />}
|
||||
</>
|
||||
)}
|
||||
</IconButton>
|
||||
|
||||
Reference in new issue
Block a user