Update thread and history components
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
|||||||
SheetTitle,
|
SheetTitle,
|
||||||
} from "@/components/ui/sheet";
|
} from "@/components/ui/sheet";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import { PanelRightOpen } from "lucide-react";
|
import { PanelRightOpen, PanelRightClose } from "lucide-react";
|
||||||
import { useMediaQuery } from "@/hooks/useMediaQuery";
|
import { useMediaQuery } from "@/hooks/useMediaQuery";
|
||||||
|
|
||||||
function ThreadList({
|
function ThreadList({
|
||||||
@@ -97,7 +97,11 @@ export default function ThreadHistory() {
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => setChatHistoryOpen((p) => !p)}
|
onClick={() => setChatHistoryOpen((p) => !p)}
|
||||||
>
|
>
|
||||||
<PanelRightOpen className="size-5" />
|
{chatHistoryOpen ? (
|
||||||
|
<PanelRightOpen className="size-5" />
|
||||||
|
) : (
|
||||||
|
<PanelRightClose className="size-5" />
|
||||||
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
<h1 className="text-xl font-semibold tracking-tight">
|
<h1 className="text-xl font-semibold tracking-tight">
|
||||||
Thread History
|
Thread History
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
ArrowDown,
|
ArrowDown,
|
||||||
LoaderCircle,
|
LoaderCircle,
|
||||||
PanelRightOpen,
|
PanelRightOpen,
|
||||||
|
PanelRightClose,
|
||||||
SquarePen,
|
SquarePen,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { BooleanParam, StringParam, useQueryParam } from "use-query-params";
|
import { BooleanParam, StringParam, useQueryParam } from "use-query-params";
|
||||||
@@ -217,7 +218,11 @@ export function Thread() {
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => setChatHistoryOpen((p) => !p)}
|
onClick={() => setChatHistoryOpen((p) => !p)}
|
||||||
>
|
>
|
||||||
<PanelRightOpen className="size-5" />
|
{chatHistoryOpen ? (
|
||||||
|
<PanelRightOpen className="size-5" />
|
||||||
|
) : (
|
||||||
|
<PanelRightClose className="size-5" />
|
||||||
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -232,7 +237,11 @@ export function Thread() {
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={() => setChatHistoryOpen((p) => !p)}
|
onClick={() => setChatHistoryOpen((p) => !p)}
|
||||||
>
|
>
|
||||||
<PanelRightOpen className="size-5" />
|
{chatHistoryOpen ? (
|
||||||
|
<PanelRightOpen className="size-5" />
|
||||||
|
) : (
|
||||||
|
<PanelRightClose className="size-5" />
|
||||||
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user