udate textarea to use destructuring, fix styling
This commit is contained in:
@ -14,7 +14,7 @@ function TextArea ({ callback, cols = 20, rows = 2, disabled = false, readOnly =
|
|||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
readOnly={readOnly}
|
readOnly={readOnly}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onChange={(event) => callback(event.target.value)}
|
onChange={({ target : { value } }) => callback(value)}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user