// 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" />;