Browse Source

[FIX] [sebfox] error in sort column

pull/325/head
SebFox2011 2 years ago
parent
commit
7aba6deff5
  1. 15
      src/components/generic/Table/index.tsx

15
src/components/generic/Table/index.tsx

@ -74,15 +74,12 @@ export const Table = ({ headings, rows }: TableProps): JSX.Element => {
> >
<div className="flex gap-2"> <div className="flex gap-2">
{heading.title} {heading.title}
{sortColumn === heading.title && ( {sortColumn === heading.title &&
<> (sortOrder === "asc" ? (
{sortOrder === "asc" ? ( <ChevronUpIcon size={16} />
<ChevronUpIcon size={16} /> ) : (
) : ( <ChevronDownIcon size={16} />
<ChevronDownIcon size={16} /> ))}
)}
</>
)}
</div> </div>
</th> </th>
))} ))}

Loading…
Cancel
Save