Fix unused thread prop in ThreadPanel
This commit is contained in:
1 parent
f262fb9385
commit
00736d5719
1 file changed
+1
-4
@@ -1,7 +1,7 @@
|
|||||||
import { useState, type FormEvent, type ReactNode } from "react";
|
import { useState, type FormEvent, type ReactNode } from "react";
|
||||||
import { Avatar, Button, Field, Icon, IconButton } from "../shared/ui";
|
import { Avatar, Button, Field, Icon, IconButton } from "../shared/ui";
|
||||||
import { Dialog } from "../shared/Dialog";
|
import { Dialog } from "../shared/Dialog";
|
||||||
import type { ChatAttachmentRecord, ChatSpaceRecord, ChatThreadRecord, FileObjectRecord } from "../../../shared/domain";
|
import type { ChatAttachmentRecord, ChatSpaceRecord, FileObjectRecord } from "../../../shared/domain";
|
||||||
import type { PageProps } from "./types";
|
import type { PageProps } from "./types";
|
||||||
import { activeOrgId } from "./types";
|
import { activeOrgId } from "./types";
|
||||||
|
|
||||||
@@ -156,7 +156,6 @@ export function ChatPage({ snapshot, actions }: PageProps) {
|
|||||||
|
|
||||||
{selectedThread && (
|
{selectedThread && (
|
||||||
<ThreadPanel
|
<ThreadPanel
|
||||||
thread={selectedThread}
|
|
||||||
threadMessages={threadMessages}
|
threadMessages={threadMessages}
|
||||||
rootMessage={messages.find((m) => m.id === selectedThread.rootMessageId) ?? null}
|
rootMessage={messages.find((m) => m.id === selectedThread.rootMessageId) ?? null}
|
||||||
employees={employees}
|
employees={employees}
|
||||||
@@ -192,7 +191,6 @@ export function ChatPage({ snapshot, actions }: PageProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ThreadPanel({
|
function ThreadPanel({
|
||||||
thread,
|
|
||||||
threadMessages,
|
threadMessages,
|
||||||
rootMessage,
|
rootMessage,
|
||||||
employees,
|
employees,
|
||||||
@@ -203,7 +201,6 @@ function ThreadPanel({
|
|||||||
onClose,
|
onClose,
|
||||||
onSubmit,
|
onSubmit,
|
||||||
}: {
|
}: {
|
||||||
thread: ChatThreadRecord;
|
|
||||||
threadMessages: Array<{ id: string; bodyMd: string; createdAt: string; senderType: string; senderId: string | null; threadId: string | null }>;
|
threadMessages: Array<{ id: string; bodyMd: string; createdAt: string; senderType: string; senderId: string | null; threadId: string | null }>;
|
||||||
rootMessage: { id: string; bodyMd: string; createdAt: string; senderType: string; senderId: string | null } | null;
|
rootMessage: { id: string; bodyMd: string; createdAt: string; senderType: string; senderId: string | null } | null;
|
||||||
employees: Array<{ id: string; displayName: string }>;
|
employees: Array<{ id: string; displayName: string }>;
|
||||||
|
|||||||
Reference in new issue
Block a user