From 52adb4602b4deeec6eb461424df18f29546e3355 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 7 Dec 2023 09:39:19 -0500 Subject: [PATCH] move files --- frontend/src/App.tsx | 2 +- frontend/src/components/history/HistoryDisplay.tsx | 2 +- frontend/src/{ => components/history}/history_types.ts | 0 frontend/src/components/history/utils.test.ts | 2 +- frontend/src/components/history/utils.ts | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename frontend/src/{ => components/history}/history_types.ts (100%) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index fe0b02e..216c572 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -29,7 +29,7 @@ import html2canvas from "html2canvas"; import { USER_CLOSE_WEB_SOCKET_CODE } from "./constants"; import CodeTab from "./components/CodeTab"; import OutputSettingsSection from "./components/OutputSettingsSection"; -import { History } from "./history_types"; +import { History } from "./components/history/history_types"; import HistoryDisplay from "./components/history/HistoryDisplay"; import { extractHistoryTree } from "./components/history/utils"; import toast from "react-hot-toast"; diff --git a/frontend/src/components/history/HistoryDisplay.tsx b/frontend/src/components/history/HistoryDisplay.tsx index 767319b..216e5bb 100644 --- a/frontend/src/components/history/HistoryDisplay.tsx +++ b/frontend/src/components/history/HistoryDisplay.tsx @@ -1,5 +1,5 @@ import { ScrollArea } from "@/components/ui/scroll-area"; -import { History, HistoryItemType } from "../../history_types"; +import { History, HistoryItemType } from "./history_types"; import toast from "react-hot-toast"; import classNames from "classnames"; diff --git a/frontend/src/history_types.ts b/frontend/src/components/history/history_types.ts similarity index 100% rename from frontend/src/history_types.ts rename to frontend/src/components/history/history_types.ts diff --git a/frontend/src/components/history/utils.test.ts b/frontend/src/components/history/utils.test.ts index c434f9b..a0dfd87 100644 --- a/frontend/src/components/history/utils.test.ts +++ b/frontend/src/components/history/utils.test.ts @@ -1,6 +1,6 @@ import { expect, test } from "vitest"; import { extractHistoryTree } from "./utils"; -import type { History } from "../../history_types"; +import type { History } from "./history_types"; const data: History = [ { diff --git a/frontend/src/components/history/utils.ts b/frontend/src/components/history/utils.ts index c82a43f..7356ee1 100644 --- a/frontend/src/components/history/utils.ts +++ b/frontend/src/components/history/utils.ts @@ -1,4 +1,4 @@ -import { History } from "../../history_types"; +import { History } from "./history_types"; export function extractHistoryTree( history: History,