From fe948ef2905089b5fd750d1404472e2dbcf107f8 Mon Sep 17 00:00:00 2001 From: kraken Date: Sat, 3 Aug 2024 02:18:03 +0530 Subject: [PATCH] fix: wrong icon for speaker-x --- apps/web/app/(dash)/chat/chatWindow.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/web/app/(dash)/chat/chatWindow.tsx b/apps/web/app/(dash)/chat/chatWindow.tsx index d186d0be..a691c0ce 100644 --- a/apps/web/app/(dash)/chat/chatWindow.tsx +++ b/apps/web/app/(dash)/chat/chatWindow.tsx @@ -6,7 +6,7 @@ import QueryInput from "./chatQueryInput"; import { cn } from "@repo/ui/lib/utils"; import { motion } from "framer-motion"; import { useRouter } from "next/navigation"; -import { ChatHistory, sourcesZod } from "@repo/shared-types"; +import { type ChatHistory, sourcesZod } from "@repo/shared-types"; import { Accordion, AccordionContent, @@ -23,8 +23,11 @@ import { codeLanguageSubset } from "@/lib/constants"; import { toast } from "sonner"; import Link from "next/link"; import { createChatObject } from "@/app/actions/doers"; -import { ClipboardIcon, SpeakerWaveIcon } from "@heroicons/react/24/outline"; -import { SpeakerOffIcon } from "@radix-ui/react-icons"; +import { + ClipboardIcon, + SpeakerWaveIcon, + SpeakerXMarkIcon, +} from "@heroicons/react/24/outline"; function ChatWindow({ q, @@ -93,7 +96,7 @@ function ChatWindow({ const getAnswer = async ( query: string, spaces: string[], - proMode: boolean = false, + proMode = false, ) => { if (query.trim() === "from_loading" || query.trim().length === 0) { return; @@ -356,7 +359,7 @@ function ChatWindow({ className="group h-8 w-8 flex justify-center items-center active:scale-75 duration-200" > {speakingIdx === idx ? ( - + ) : ( )}