From cccf75374328dd977e2c1f623f60cd66e6b74903 Mon Sep 17 00:00:00 2001 From: Xiangxuan Liu <9570112+nauxliu@users.noreply.github.com> Date: Thu, 23 Mar 2023 01:38:48 +0800 Subject: [PATCH] Update the Stop Generating button style (#79) --- components/Chat/Chat.tsx | 2 +- components/Chat/ChatInput.tsx | 21 +++++++++------------ 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index 6c09133..5e41ef3 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -80,7 +80,7 @@ export const Chat: FC = ({ conversation, models, messageIsStreaming, mode {loading && }
diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx index 29054a1..78bffd3 100644 --- a/components/Chat/ChatInput.tsx +++ b/components/Chat/ChatInput.tsx @@ -1,5 +1,5 @@ import { Message, OpenAIModel, OpenAIModelID } from "@/types"; -import { IconHandStop, IconSend } from "@tabler/icons-react"; +import { IconSend, IconPlayerStop } from "@tabler/icons-react"; import { FC, KeyboardEvent, MutableRefObject, useEffect, useRef, useState } from "react"; interface Props { @@ -78,6 +78,14 @@ export const ChatInput: FC = ({ onSend, messageIsStreaming, model, stopCo return (
+ {messageIsStreaming && ( + + )}