Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dbd901c

Browse files
committed
add delete thread functionality
1 parent e553d52 commit dbd901c

File tree

1 file changed

+8
-8
lines changed
  • client/packages/lowcoder/src/comps/comps/chatComp/components/assistant-ui

1 file changed

+8
-8
lines changed

‎client/packages/lowcoder/src/comps/comps/chatComp/components/assistant-ui/thread-list.tsx‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
ThreadListItemPrimitive,
44
ThreadListPrimitive,
55
} from "@assistant-ui/react";
6-
import { ArchiveIcon,PlusIcon } from "lucide-react";
6+
import { PlusIcon,Trash2Icon } from "lucide-react";
77

88
import { Button } from "../ui/button";
99
import { TooltipIconButton } from "./tooltip-icon-button";
@@ -38,7 +38,7 @@ const ThreadListItem: FC = () => {
3838
<ThreadListItemPrimitive.Trigger className="aui-thread-list-item-trigger">
3939
<ThreadListItemTitle />
4040
</ThreadListItemPrimitive.Trigger>
41-
<ThreadListItemArchive />
41+
<ThreadListItemDelete />
4242
</ThreadListItemPrimitive.Root>
4343
);
4444
};
@@ -51,16 +51,16 @@ const ThreadListItemTitle: FC = () => {
5151
);
5252
};
5353

54-
const ThreadListItemArchive: FC = () => {
54+
const ThreadListItemDelete: FC = () => {
5555
return (
56-
<ThreadListItemPrimitive.Archive asChild>
56+
<ThreadListItemPrimitive.Delete asChild>
5757
<TooltipIconButton
58-
className="aui-thread-list-item-archive"
58+
className="aui-thread-list-item-delete"
5959
variant="ghost"
60-
tooltip="Archive thread"
60+
tooltip="Delete thread"
6161
>
62-
<ArchiveIcon />
62+
<Trash2Icon />
6363
</TooltipIconButton>
64-
</ThreadListItemPrimitive.Archive>
64+
</ThreadListItemPrimitive.Delete>
6565
);
6666
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /