Skip to content

Commit

Permalink
refactor: use sort direction type from react-table
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Dec 6, 2024
1 parent 285554c commit 7ad5135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/sortable/src/Example/SortableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
flexRender,
getCoreRowModel,
getSortedRowModel,
SortDirection,
SortingFn,
SortingState,
useReactTable,
Expand Down Expand Up @@ -137,7 +138,7 @@ export const SortableColumns = () => {
{{
asc: <ArrowUp />,
desc: <ArrowUp className="descending-sorting-icon" />,
}[header.column.getIsSorted() as string] ?? null}
}[header.column.getIsSorted() as SortDirection] ?? null}
</Button>
)}
</TableHeader>
Expand Down

0 comments on commit 7ad5135

Please sign in to comment.