Skip to content

Commit

Permalink
fix: sorting for both source and connector
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmullapudi committed Mar 23, 2022
1 parent 3754d0d commit 99660e0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions airbyte-webapp/src/components/EntityTable/ImplementationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const ImplementationTable: React.FC<IProps> = ({
<>
<FormattedMessage id="tables.connector" />
<SortButton
wasActive={sortBy === "entity"}
wasActive={sortBy === "connector"}
lowToLarge={sortOrder === SortOrderEnum.ASC}
onClick={() => onSortClick("entity")}
onClick={() => onSortClick("connector")}
/>
</>
),
Expand All @@ -116,7 +116,16 @@ const ImplementationTable: React.FC<IProps> = ({
),
},
{
Header: <FormattedMessage id={`tables.${entity}ConnectWith`} />,
Header: (
<>
<FormattedMessage id={`tables.${entity}ConnectWith`} />
<SortButton
wasActive={sortBy === "destination"}
lowToLarge={sortOrder === SortOrderEnum.ASC}
onClick={() => onSortClick("destination")}
/>
</>
),
accessor: "connectEntities",
Cell: ({ cell, row }: CellProps<EntityTableDataItem>) => (
<ConnectEntitiesCell
Expand Down

0 comments on commit 99660e0

Please sign in to comment.