Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 15, 2024
1 parent 27749a9 commit e9a4b56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/threads.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Chat } from "../hooks/useChatList.ts";
import { Chat } from "../types";

export async function getThread(threadId: string): Promise<Chat | null> {
try {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/TypingBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/useChatMessages.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/useStreamState.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit e9a4b56

Please sign in to comment.