Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TextValidator.prototype.render = function () {
var _a = this.props, error = _a.error, errorMessages = _a.errorMessages, validators = _a.validators, requiredError = _a.requiredError, helperText = _a.helperText, validatorListener = _a.validatorListener, withRequiredValidator = _a.withRequiredValidator, label = _a.label, id = _a.id, rest = __rest(_a, ["error", "errorMessages", "validators", "requiredError", "helperText", "validatorListener", "withRequiredValidator", "label", "id"]);
var isValid = this.state.isValid;
return (React.createElement(TextField_1.default, __assign({}, rest, { id: id, label: label || uno_react_1.humanize(id), error: !isValid || error, helperText: (!isValid && this.getErrorMessage()) || helperText })));
};
return TextValidator;
export default ({ data }: any) => {
const classes = useStyles({});
return (
<div id="{data.id}">
<div>
{humanize(data.id)}
<code>
</code><code>
</code><code>
</code></div><code>
{data.description}
</code></div>
render() {
const _a = this.props, { error, errorMessages, validators, requiredError, helperText, validatorListener, withRequiredValidator, label, id } = _a, rest = __rest(_a, ["error", "errorMessages", "validators", "requiredError", "helperText", "validatorListener", "withRequiredValidator", "label", "id"]);
const { isValid } = this.state;
return ();
}
}