//
// SPDX-License-Identifier: AGPL-3.0
-import * as React from 'react';
+import React from 'react';
import { reduxForm, Field } from 'redux-form';
import { Grid } from '@material-ui/core';
-import { TextField } from '~/components/text-field/text-field';
+import { TextField } from 'components/text-field/text-field';
+import { PROCESS_NAME_VALIDATION } from 'validators/validators';
export const RUN_PROCESS_BASIC_FORM = 'runProcessBasicForm';
form: RUN_PROCESS_BASIC_FORM
})(() =>
<form>
- <Grid container spacing={16}>
+ <Grid container spacing={32}>
<Grid item xs={12} md={6}>
<Field
name='name'
- component={TextField}
- label="Enter a new name for run process" />
+ component={TextField as any}
+ label="Enter a new name for run process"
+ required
+ validate={PROCESS_NAME_VALIDATION} />
</Grid>
<Grid item xs={12} md={6}>
<Field
name='description'
- component={TextField}
+ component={TextField as any}
label="Enter a description for run process" />
</Grid>
</Grid>