mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 13:09:51 +01: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
|
<IconButton
|
||||||
|
color={sorting?.by === name ? undefined : 'gray'}
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
mutateCompareTemporary((draft) => {
|
mutateCompareTemporary((draft) => {
|
||||||
@@ -185,8 +186,8 @@ export default function Page() {
|
|||||||
)}
|
)}
|
||||||
{sorting?.by === name && (
|
{sorting?.by === name && (
|
||||||
<>
|
<>
|
||||||
{sorting.direction === 'ascending' && <CaretLeftIcon />}
|
{sorting.direction === 'ascending' && <CaretRightIcon />}
|
||||||
{sorting.direction === 'descending' && <CaretRightIcon />}
|
{sorting.direction === 'descending' && <CaretLeftIcon />}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in new issue
Block a user