diff --git a/web-app/src/components/ui/chat/chat-header.jsx b/web-app/src/components/ui/chat/chat-header.jsx index 512a72a..fbda3f2 100644 --- a/web-app/src/components/ui/chat/chat-header.jsx +++ b/web-app/src/components/ui/chat/chat-header.jsx @@ -1,9 +1,8 @@ -import React from "react"; -import DeleteButton from "src/components/ui/button/delete-button"; -import SchematicButton from "../button/schematic-button"; import React, { useMemo, useState } from "react"; import { motion } from "motion/react"; 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" }) { const isDebug = useMemo(() => { @@ -16,7 +15,7 @@ export default function ChatHeader({ title = "Title of Chat" }) { async function triggerDemoIngest() { try { setIngesting(true); - const res = await fetch("/api/files/import-demo", { method: "POST" }); + const res = await fetch("/api/files/import-demo", { method: "POST" }); const json = await res.json().catch(() => ({})); setToast(`Imported: ${json.imported ?? "?"}, Skipped: ${json.skipped ?? "?"}`); setTimeout(() => setToast(""), 4000); @@ -27,29 +26,30 @@ export default function ChatHeader({ title = "Title of Chat" }) { setIngesting(false); } } + return (