mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
27 lines
658 B
TypeScript
27 lines
658 B
TypeScript
import InputField from 'sentry/components/deprecatedforms/inputField';
|
|
|
|
type State = InputField['state'] & {
|
|
value?: string;
|
|
};
|
|
|
|
// XXX: This is ONLY used in GenericField. If we can delete that this can go.
|
|
|
|
/**
|
|
* @deprecated Do not use this
|
|
*/
|
|
export default class TextareaField extends InputField<InputField['props'], State> {
|
|
getField() {
|
|
return (
|
|
<textarea
|
|
id={this.getId()}
|
|
className="form-control"
|
|
value={this.state.value}
|
|
disabled={this.props.disabled}
|
|
required={this.props.required}
|
|
placeholder={this.props.placeholder}
|
|
onChange={this.onChange.bind(this)}
|
|
/>
|
|
);
|
|
}
|
|
}
|