From 396fe4ec6f37c316ac202f285fb6901df4712046 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Sat, 18 Mar 2023 17:56:55 -0600 Subject: [PATCH] fix syntax --- components/Chat/ChatInput.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx index 00b5b4e..2afcf3c 100644 --- a/components/Chat/ChatInput.tsx +++ b/components/Chat/ChatInput.tsx @@ -3,7 +3,7 @@ import { IconSend } from "@tabler/icons-react"; import { FC, KeyboardEvent, useEffect, useRef, useState } from "react"; interface Props { - messageIsStreaming: boolean, + messageIsStreaming: boolean; onSend: (message: Message) => void; } @@ -57,13 +57,13 @@ export const ChatInput: FC = ({ onSend, messageIsStreaming }) => { ref={textareaRef} className="rounded-lg pl-4 pr-8 py-3 w-full focus:outline-none max-h-[280px] dark:bg-[#40414F] dark:border-opacity-50 dark:border-neutral-800 dark:text-neutral-100 border border-neutral-300 shadow text-neutral-900" style={{ - resize: "none", - bottom: `${textareaRef?.current?.scrollHeight}px`, - height: 'auto', - minHeight: '100px', - maxHeight: '400px', - overflow: 'auto', - }} + resize: "none", + bottom: `${textareaRef?.current?.scrollHeight}px`, + height: "auto", + minHeight: "100px", + maxHeight: "400px", + overflow: "auto" + }} placeholder="Type a message..." value={content} rows={1}