Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Jul 5, 2023
1 parent 70975ee commit b079fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
8 changes: 5 additions & 3 deletions client/src/app/pages/dependencies/dependencies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export const Dependencies: React.FC = () => {
language: "Language",
labels: "Labels",
},
// sortableColumns: ["name", "foundIn", "language", "labels"],
sortableColumns: ["name"],
initialSort: null,
sortableColumns: ["name", "labels"],
initialSort: { columnKey: "name", direction: "asc" },
filterCategories: [
{
key: "name",
Expand All @@ -76,6 +75,9 @@ export const Dependencies: React.FC = () => {
...tableControlState, // Includes filterState, sortState and paginationState
hubSortFieldKeys: {
name: "name",
// version: "version",
// sha: "sha",
labels: "labels",
},
})
);
Expand Down
14 changes: 2 additions & 12 deletions client/src/app/pages/dependencies/dependency-apps-table.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import * as React from "react";
import { useTranslation } from "react-i18next";
import {
Button,
Toolbar,
ToolbarContent,
ToolbarItem,
} from "@patternfly/react-core";
import { Toolbar, ToolbarContent, ToolbarItem } from "@patternfly/react-core";
import {
TableComposable,
Tbody,
Expand All @@ -16,12 +11,7 @@ import {
} from "@patternfly/react-table";
import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing";
import { useSelectionState } from "@migtools/lib-ui";
import {
AnalysisFileReport,
AnalysisAppReport,
AnalysisIssue,
AnalysisDependency,
} from "@app/api/models";
import { AnalysisFileReport, AnalysisDependency } from "@app/api/models";
import {
getHubRequestParams,
useTableControlProps,
Expand Down

0 comments on commit b079fed

Please sign in to comment.