refactor(react/ribbon): solve type errors

This commit is contained in:
Elian Doran
2025-08-24 20:23:00 +03:00
parent 88c3cd5cdd
commit 096ab52216
5 changed files with 17 additions and 14 deletions

View File

@@ -5,15 +5,13 @@ interface FormTextAreaProps extends Omit<TextareaHTMLAttributes, "onBlur" | "onC
currentValue: string;
onChange?(newValue: string): void;
onBlur?(newValue: string): void;
rows: number;
inputRef?: RefObject<HTMLTextAreaElement>
}
export default function FormTextArea({ inputRef, id, onBlur, onChange, rows, currentValue, className, ...restProps }: FormTextAreaProps) {
export default function FormTextArea({ inputRef, id, onBlur, onChange, currentValue, className, ...restProps }: FormTextAreaProps) {
return (
<textarea
ref={inputRef}
id={id}
rows={rows}
className={`form-control ${className ?? ""}`}
onChange={(e) => {
onChange?.(e.currentTarget.value);