CreateImageWizard: require max image name length of 100 chars

This commit is contained in:
Jacob Kozol 2022-05-04 19:04:02 +02:00 committed by jkozol
parent 8c4cc5c472
commit 40f7be170c
2 changed files with 56 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import React from 'react';
import componentTypes from '@data-driven-forms/react-form-renderer/component-types';
import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types';
import StepTemplate from './stepTemplate';
export default {
@ -20,6 +21,12 @@ export default {
type: 'text',
label: 'Image name',
autoFocus: true,
validate: [
{
type: validatorTypes.MAX_LENGTH,
threshold: 100
}
],
}
]
};