This commit is contained in:
Apoorv Taneja 2019-08-23 02:17:22 +05:30 committed by Cassie Tarakajian
parent 3d779734c3
commit aa318e0d2d

View file

@ -14,7 +14,7 @@ class NewFolderForm extends React.Component {
render() {
const {
fields: { name }, handleSubmit, submitting, pristine
fields: { name }, handleSubmit
} = this.props;
return (
<form
@ -34,7 +34,7 @@ class NewFolderForm extends React.Component {
ref={(element) => { this.fileName = element; }}
{...domOnlyProps(name)}
/>
<input type="submit" value="Add Folder" disabled={submitting || pristine} aria-label="add folder" />
<input type="submit" value="Add Folder" aria-label="add folder" />
{name.touched && name.error && <span className="form-error">{name.error}</span>}
</form>
);