Skip to content

Commit 5087925

Browse files
committed
Updated history button added from react-icons
1 parent a0bb8c5 commit 5087925

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"next": "14.2.7",
5555
"react": "^18",
5656
"react-dom": "^18",
57+
"react-icons": "^5.3.0",
5758
"react-json-view": "^1.21.3",
5859
"react-markdown": "^9.0.1",
5960
"react-syntax-highlighter": "^15.5.0",

src/components/ThreadHistory.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { isToday, isYesterday, isWithinInterval, subDays } from "date-fns";
22
import { TooltipIconButton } from "./ui/assistant-ui/tooltip-icon-button";
33
import { Button } from "./ui/button";
4-
import { History, Trash2 } from "lucide-react";
4+
import { Trash2 } from "lucide-react";
55
import { Sheet, SheetContent, SheetTrigger } from "./ui/sheet";
66
import { Skeleton } from "./ui/skeleton";
77
import { useState } from "react";
88
import { Thread } from "@langchain/langgraph-sdk";
9+
import { PiChatsCircleLight } from "react-icons/pi";
910

1011
interface ThreadHistoryProps {
1112
isUserThreadsLoading: boolean;
@@ -191,7 +192,7 @@ export function ThreadHistory(props: ThreadHistoryProps) {
191192
variant="ghost"
192193
className="w-fit h-fit p-2"
193194
>
194-
<History className="w-6 h-6 text-gray-600" />
195+
<PiChatsCircleLight className="w-6 h-6 text-gray-600" />
195196
</TooltipIconButton>
196197
</SheetTrigger>
197198
<SheetContent side="left" className="border-none">

yarn.lock

+23-3
Original file line numberDiff line numberDiff line change
@@ -4940,6 +4940,11 @@ react-dom@^18:
49404940
loose-envify "^1.1.0"
49414941
scheduler "^0.23.2"
49424942

4943+
react-icons@^5.3.0:
4944+
version "5.3.0"
4945+
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-5.3.0.tgz#ccad07a30aebd40a89f8cfa7d82e466019203f1c"
4946+
integrity sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==
4947+
49434948
react-is@^16.13.1:
49444949
version "16.13.1"
49454950
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
@@ -5452,8 +5457,16 @@ streamsearch@^1.1.0:
54525457
resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764"
54535458
integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==
54545459

5455-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0:
5456-
name string-width-cjs
5460+
"string-width-cjs@npm:string-width@^4.2.0":
5461+
version "4.2.3"
5462+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
5463+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
5464+
dependencies:
5465+
emoji-regex "^8.0.0"
5466+
is-fullwidth-code-point "^3.0.0"
5467+
strip-ansi "^6.0.1"
5468+
5469+
string-width@^4.1.0:
54575470
version "4.2.3"
54585471
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
54595472
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -5541,7 +5554,14 @@ stringify-entities@^4.0.0:
55415554
character-entities-html4 "^2.0.0"
55425555
character-entities-legacy "^3.0.0"
55435556

5544-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
5557+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
5558+
version "6.0.1"
5559+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
5560+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
5561+
dependencies:
5562+
ansi-regex "^5.0.1"
5563+
5564+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
55455565
version "6.0.1"
55465566
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
55475567
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==

0 commit comments

Comments
 (0)