Skip to content

Commit

Permalink
feat(Table): using the new sort icons (#514)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Updated sorting icons in the table component for enhanced visual
clarity and user interaction.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
aversini authored Apr 17, 2024
1 parent 85649fe commit 74ca7a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ui-components/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconDown, IconSort, IconUp } from "@versini/ui-icons";
import { IconSort, IconSortDown, IconSortUp } from "@versini/ui-icons";
import { useContext } from "react";

import { ButtonSort } from "../private/ButtonSort";
Expand Down Expand Up @@ -191,10 +191,10 @@ export const TableCellSort = ({
>
{sortDirection === TableCellSortDirections.ASC &&
sortedCell === cellId ? (
<IconUp className="h-3 w-3" monotone />
<IconSortUp className="h-3 w-3" monotone />
) : sortDirection === TableCellSortDirections.DESC &&
sortedCell === cellId ? (
<IconDown className="h-3 w-3" monotone />
<IconSortDown className="h-3 w-3" monotone />
) : (
<IconSort className="h-3 w-3" monotone />
)}
Expand Down

0 comments on commit 74ca7a9

Please sign in to comment.