41 lines
966 B
JavaScript
41 lines
966 B
JavaScript
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';
|
|
|
|
import CustomButtons from '../formComponents/CustomButtons';
|
|
|
|
export default {
|
|
StepTemplate,
|
|
id: 'wizard-details',
|
|
name: 'image-name',
|
|
title: 'Name image',
|
|
nextStep: 'review',
|
|
buttons: CustomButtons,
|
|
fields: [
|
|
{
|
|
component: componentTypes.PLAIN_TEXT,
|
|
name: 'plain-text-component',
|
|
label: (
|
|
<p>
|
|
Optionally enter a name for your image. All images will have a UUID.
|
|
</p>
|
|
),
|
|
},
|
|
{
|
|
component: componentTypes.TEXT_FIELD,
|
|
name: 'image-name',
|
|
type: 'text',
|
|
label: 'Image name',
|
|
autoFocus: true,
|
|
validate: [
|
|
{
|
|
type: validatorTypes.MAX_LENGTH,
|
|
threshold: 100,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|