Skip to content

Commit

Permalink
fix wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Jan 31, 2025
1 parent deb0118 commit 8a2dcf7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import {
} from "./style";
import ConfirmationDialog from "../../../../../common/dialogs/ConfirmationDialog";
import LinearProgressWithLabel from "../../../../../common/LinearProgressWithLabel";
import DigestDialog from "../../../../../common/dialogs/DigestDialog";
import type { EmptyObject } from "../../../../../../utils/tsUtils";
import DigestDialog from "@/components/common/dialogs/DigestDialog";

export const ColorStatus = {

Check warning on line 46 in webapp/src/components/App/Singlestudy/HomeView/InformationView/LauncherHistory/JobStepper.tsx

View workflow job for this annotation

GitHub Actions / npm-lint

Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
running: "warning.main",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import LaunchJobLogView from "../../../Tasks/LaunchJobLogView";
import useEnqueueErrorSnackbar from "../../../../../hooks/useEnqueueErrorSnackbar";
import ConfirmationDialog from "../../../../common/dialogs/ConfirmationDialog";
import type { EmptyObject } from "../../../../../utils/tsUtils";
import DigestDialog from "../../../../common/dialogs/DigestDialog";
import DigestDialog from "@/components/common/dialogs/DigestDialog";

interface OutputDetail {
name: string;
Expand Down
78 changes: 0 additions & 78 deletions webapp/src/components/common/dialogs/DigestDialog.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ const isGroupedColumns = (columns: string[] | string[][]): columns is string[][]
return Array.isArray(columns[0]);
};

const isColumns = (columns: string[] | string[][]): columns is string[] => {
return !isGroupedColumns(columns);
};

interface DigestMatrixProps {
matrix: DigestMatrixType;
}
Expand All @@ -49,7 +45,7 @@ function DigestMatrix({ matrix }: DigestMatrixProps) {
: generateDataColumns({
timeSeriesColumns: false,
count: matrix.columns.length,
customColumns: isColumns(matrix.columns) ? matrix.columns : undefined,
customColumns: !isGroupedColumns(matrix.columns) ? matrix.columns : undefined,
});

////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 8a2dcf7

Please sign in to comment.