Add SortDirection and ProjectColumnName enums
[arvados-workbench2.git] / src / components / data-table / data-table.tsx
index 22ecf4fc2783aa048a6ae1e4703e4f3d50ff2458..5372128f316613d41c9aa7758ba8b978dc97c5dc 100644 (file)
@@ -54,8 +54,8 @@ class DataTable<T extends DataItem> extends React.Component<DataTableProps<T> &
                     </DataTableFilters>
                     : sortDirection
                         ? <TableSortLabel
-                            active={sortDirection !== "none"}
-                            direction={sortDirection !== "none" ? sortDirection : undefined}
+                            active={sortDirection !== SortDirection.None}
+                            direction={sortDirection !== SortDirection.None ? sortDirection : undefined}
                             onClick={() =>
                                 onSortToggle &&
                                 onSortToggle(column)}>