Create sharing invitation form
[arvados-workbench2.git] / src / views-components / form-fields / project-form-fields.tsx
index 967d3e5b878d9bc63811fd2e3810724ecf05b06f..8243cfe364d45cee3d05fde0b3637a7b13a3838f 100644 (file)
@@ -3,20 +3,20 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from "react";
-import { Field, WrappedFieldProps } from "redux-form";
-import { TextField } from "~/components/text-field/text-field";
-import { PROJECT_NAME_VALIDATION, PROJECT_DESCRIPTION_VALIDATION } from "~/validators/validators";
+import { Field } from "redux-form";
+import { TextField, RichEditorTextField } from "~/components/text-field/text-field";
+import { PROJECT_NAME_VALIDATION } from "~/validators/validators";
 
 export const ProjectNameField = () =>
     <Field
         name='name'
         component={TextField}
         validate={PROJECT_NAME_VALIDATION}
-        label="Project Name" />;
+        label="Project Name"
+        autoFocus={true} />;
 
 export const ProjectDescriptionField = () =>
     <Field
         name='description'
-        component={TextField}
-        validate={PROJECT_DESCRIPTION_VALIDATION}
-        label="Description - optional" />;
\ No newline at end of file
+        component={RichEditorTextField}
+        label="Description - optional" />;