From e9a4b561ec32a4d07c610ae064220d6bb6f6f70a Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 15 Apr 2024 12:40:44 -0700 Subject: [PATCH] Lint --- frontend/src/api/threads.ts | 2 +- frontend/src/components/TypingBox.tsx | 2 +- frontend/src/hooks/useChatMessages.ts | 2 +- frontend/src/hooks/useStreamState.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/api/threads.ts b/frontend/src/api/threads.ts index 4e4e29c3..ffa1b879 100644 --- a/frontend/src/api/threads.ts +++ b/frontend/src/api/threads.ts @@ -1,4 +1,4 @@ -import { Chat } from "../hooks/useChatList.ts"; +import { Chat } from "../types"; export async function getThread(threadId: string): Promise { try { diff --git a/frontend/src/components/TypingBox.tsx b/frontend/src/components/TypingBox.tsx index c369c9d6..df463e05 100644 --- a/frontend/src/components/TypingBox.tsx +++ b/frontend/src/components/TypingBox.tsx @@ -12,7 +12,7 @@ import { useDropzone } from "react-dropzone"; import { MessageWithFiles } from "../utils/formTypes.ts"; import { DROPZONE_CONFIG, TYPE_NAME } from "../constants.ts"; import { Config } from "../hooks/useConfigList.ts"; -import { Chat } from "../hooks/useChatList.ts"; +import { Chat } from "../types"; function getFileTypeIcon(fileType: string) { switch (fileType) { diff --git a/frontend/src/hooks/useChatMessages.ts b/frontend/src/hooks/useChatMessages.ts index 28830af3..40db07ed 100644 --- a/frontend/src/hooks/useChatMessages.ts +++ b/frontend/src/hooks/useChatMessages.ts @@ -1,5 +1,5 @@ import { useEffect, useMemo, useRef, useState } from "react"; -import { Message } from "./useChatList"; +import { Message } from "../types"; import { StreamState, mergeMessagesById } from "./useStreamState"; async function getState(threadId: string) { diff --git a/frontend/src/hooks/useStreamState.tsx b/frontend/src/hooks/useStreamState.tsx index 960f2c26..f0a4baee 100644 --- a/frontend/src/hooks/useStreamState.tsx +++ b/frontend/src/hooks/useStreamState.tsx @@ -1,6 +1,6 @@ import { useCallback, useState } from "react"; import { fetchEventSource } from "@microsoft/fetch-event-source"; -import { Message } from "./useChatList"; +import { Message } from "../types"; export interface StreamState { status: "inflight" | "error" | "done";