From d1cddf2690b1d2b08f07975625fc32955ca439ce Mon Sep 17 00:00:00 2001 From: yenminh269 Date: Sun, 19 Oct 2025 08:22:59 -0500 Subject: [PATCH] "making the delete button works" --- web-app/src/components/layouts/chat-layout.jsx | 4 ++-- web-app/src/components/ui/chat/chat-header.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web-app/src/components/layouts/chat-layout.jsx b/web-app/src/components/layouts/chat-layout.jsx index 5439009..538ee05 100644 --- a/web-app/src/components/layouts/chat-layout.jsx +++ b/web-app/src/components/layouts/chat-layout.jsx @@ -31,9 +31,9 @@ export default function ChatLayout() { return (
- + - +
); } diff --git a/web-app/src/components/ui/chat/chat-header.jsx b/web-app/src/components/ui/chat/chat-header.jsx index fbda3f2..350d2f7 100644 --- a/web-app/src/components/ui/chat/chat-header.jsx +++ b/web-app/src/components/ui/chat/chat-header.jsx @@ -4,7 +4,7 @@ import { Rocket } from "lucide-react"; import DeleteButton from "src/components/ui/button/delete-button"; import SchematicButton from "../button/schematic-button"; -export default function ChatHeader({ title = "Title of Chat" }) { +export default function ChatHeader({ title = "Title of Chat", onDeleteAll }) { const isDebug = useMemo(() => { const p = new URLSearchParams(window.location.search); return p.get("debug") === "1"; @@ -36,7 +36,7 @@ export default function ChatHeader({ title = "Title of Chat" }) {

{title}

- + {isDebug && (