diff --git a/src/frontend/src/components/cardComponent/index.tsx b/src/frontend/src/components/cardComponent/index.tsx index 0698edd73..9b2ecdbe3 100644 --- a/src/frontend/src/components/cardComponent/index.tsx +++ b/src/frontend/src/components/cardComponent/index.tsx @@ -11,7 +11,7 @@ import { storeComponent } from "../../types/store"; import cloneFLowWithParent, { getInputsAndOutputs, } from "../../utils/storeUtils"; -import { cn, convertTestName } from "../../utils/utils"; +import { cn } from "../../utils/utils"; import IconComponent from "../genericIconComponent"; import ShadTooltip from "../shadTooltipComponent"; import { Button } from "../ui/button"; @@ -23,6 +23,7 @@ import { CardTitle, } from "../ui/card"; import Loading from "../ui/loading"; +import { convertTestName } from "./utils/convert-test-name"; export default function CollectionCardComponent({ data, diff --git a/src/frontend/src/components/cardComponent/utils/convert-test-name.tsx b/src/frontend/src/components/cardComponent/utils/convert-test-name.tsx new file mode 100644 index 000000000..ac8800540 --- /dev/null +++ b/src/frontend/src/components/cardComponent/utils/convert-test-name.tsx @@ -0,0 +1,3 @@ +export function convertTestName(name: string): string { + return name.replace(/ /g, "-").toLowerCase(); +} diff --git a/src/frontend/src/utils/utils.ts b/src/frontend/src/utils/utils.ts index cb8451299..46495c942 100644 --- a/src/frontend/src/utils/utils.ts +++ b/src/frontend/src/utils/utils.ts @@ -351,10 +351,6 @@ export function freezeObject(obj: any) { return JSON.parse(JSON.stringify(obj)); } -export function convertTestName(name: string): string { - return name.replace(/ /g, "-").toLowerCase(); -} - export function sortByName(stringList: string[]): string[] { return stringList.sort((a, b) => a.localeCompare(b)); }