interface ProjectNameFieldProps {
validate: Validator[];
+ label?: string;
}
// Validation behavior depends on the value of ForwardSlashNameSubstitution.
PROJECT_NAME_VALIDATION : PROJECT_NAME_VALIDATION_ALLOW_SLASH)
};
})((props: ProjectNameFieldProps) =>
- <Field
+ <span data-cy='name-field'><Field
name='name'
component={TextField}
validate={props.validate}
- label="Project Name"
- autoFocus={true} />
+ label={props.label || "Project Name"}
+ autoFocus={true} /></span>
);
export const ProjectDescriptionField = () =>