From 5e514c5655a2494b9107fd4a96a7e88427be2e29 Mon Sep 17 00:00:00 2001 From: DDMeaqua Date: Sat, 12 Oct 2024 19:47:01 +0800 Subject: [PATCH] chore: wip --- app/components/chat.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 83d3f1552..a52f3b13b 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -370,7 +370,6 @@ export function ChatAction(props: { text: string; icon: JSX.Element; onClick: () => void; - recording?: boolean; }) { const iconRef = useRef(null); const textRef = useRef(null); @@ -379,7 +378,7 @@ export function ChatAction(props: { icon: 16, }); - function updateWidth(recording?: boolean) { + function updateWidth() { if (!iconRef.current || !textRef.current) return; const getWidth = (dom: HTMLDivElement) => dom.getBoundingClientRect().width; const textWidth = getWidth(textRef.current); @@ -837,7 +836,6 @@ export function ChatActions(props: { } text={isListening ? Locale.Chat.StopSpeak : Locale.Chat.StartSpeak} icon={isListening ? : } - recording={isListening} /> )}