fix syntax
This commit is contained in:
parent
fe7d1a6ab2
commit
396fe4ec6f
|
@ -3,7 +3,7 @@ import { IconSend } from "@tabler/icons-react";
|
||||||
import { FC, KeyboardEvent, useEffect, useRef, useState } from "react";
|
import { FC, KeyboardEvent, useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
messageIsStreaming: boolean,
|
messageIsStreaming: boolean;
|
||||||
onSend: (message: Message) => void;
|
onSend: (message: Message) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,10 +59,10 @@ export const ChatInput: FC<Props> = ({ onSend, messageIsStreaming }) => {
|
||||||
style={{
|
style={{
|
||||||
resize: "none",
|
resize: "none",
|
||||||
bottom: `${textareaRef?.current?.scrollHeight}px`,
|
bottom: `${textareaRef?.current?.scrollHeight}px`,
|
||||||
height: 'auto',
|
height: "auto",
|
||||||
minHeight: '100px',
|
minHeight: "100px",
|
||||||
maxHeight: '400px',
|
maxHeight: "400px",
|
||||||
overflow: 'auto',
|
overflow: "auto"
|
||||||
}}
|
}}
|
||||||
placeholder="Type a message..."
|
placeholder="Type a message..."
|
||||||
value={content}
|
value={content}
|
||||||
|
|
Loading…
Reference in New Issue