Skip to content

Commit

Permalink
Add title for collecticons
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Aug 2, 2023
1 parent 63fe5dc commit a59bc43
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/scripts/components/common/table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ export default function TableComponent({ dataPath, excelOption, columnToSort }:T
header.getContext())}
{header.column.getCanSort() &&
<Button onClick={header.column.getToggleSortingHandler()} variation='base-text'>

{header.column.getIsSorted() as string == 'asc' && <CollecticonArrowUp />}
{header.column.getIsSorted() as string == 'desc' && <CollecticonArrowDown />}
{!header.column.getIsSorted() && <CollecticonArrowLoop />}
{header.column.getIsSorted() as string == 'asc' && <CollecticonArrowUp meaninful={true} title='Sorted in ascending order' />}

Check failure on line 80 in app/scripts/components/common/table/index.tsx

View workflow job for this annotation

GitHub Actions / ts-check

No overload matches this call.
{header.column.getIsSorted() as string == 'desc' && <CollecticonArrowDown meaninful={true} title='Sorted in descending order' />}

Check failure on line 81 in app/scripts/components/common/table/index.tsx

View workflow job for this annotation

GitHub Actions / ts-check

No overload matches this call.
{!header.column.getIsSorted() && <CollecticonArrowLoop meaninful={true} title={`Sort the rows with this column's value`} />}

Check failure on line 82 in app/scripts/components/common/table/index.tsx

View workflow job for this annotation

GitHub Actions / ts-check

No overload matches this call.
</Button>}
</th>
))}
Expand Down

0 comments on commit a59bc43

Please sign in to comment.