feat: gray sort buttons

This commit is contained in:
TrèsAbhi committed 2024-04-06 17:54:50 -05:00
1 parent 9f244452da
commit 52cb73a575
1 file changed
+3 -2
+3 -2
View File
@@ -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>