Listening Convo Edit and a bunch of ts errors

This commit is contained in:
Carlos-Mesquita
2024-11-06 19:43:06 +00:00
parent b5ac908d09
commit 5165b6ae6d
13 changed files with 555 additions and 218 deletions

View File

@@ -5,6 +5,7 @@ interface Props {
onChange: (value: string) => void;
className?: string;
placeholder?: string;
disabled?: boolean;
onBlur?: () => void;
}
@@ -12,6 +13,7 @@ const AutoExpandingTextArea: React.FC<Props> = ({
value,
className = 'w-full cursor-text px-7 py-8 input border-2 border-mti-gray-platinum bg-white rounded-3xl',
placeholder = "Enter text here...",
disabled = false,
onChange,
onBlur,
}) => {
@@ -45,6 +47,7 @@ const AutoExpandingTextArea: React.FC<Props> = ({
placeholder={placeholder}
style={{ overflow: 'hidden', resize: 'none' }}
onBlur={onBlur}
disabled={disabled}
autoFocus
/>
);