X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ead22eaffc696e9619d0ba7a71c8d54099200685..9be874f7744b5ceb53f4be20d1748db34859468a:/src/views-components/form-fields/collection-form-fields.tsx diff --git a/src/views-components/form-fields/collection-form-fields.tsx b/src/views-components/form-fields/collection-form-fields.tsx index 2d2a7c80..2ebcf08e 100644 --- a/src/views-components/form-fields/collection-form-fields.tsx +++ b/src/views-components/form-fields/collection-form-fields.tsx @@ -3,11 +3,11 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; -import { Field, WrappedFieldProps } from "redux-form"; +import { Field } from "redux-form"; import { TextField } from "~/components/text-field/text-field"; import { COLLECTION_NAME_VALIDATION, COLLECTION_DESCRIPTION_VALIDATION, COLLECTION_PROJECT_VALIDATION } from "~/validators/validators"; -import { ProjectTreePicker, ProjectTreePickerField } from "~/views-components/project-tree-picker/project-tree-picker"; -import { PickerIdProp } from '../../store/tree-picker/picker-id'; +import { ProjectTreePickerField, CollectionTreePickerField } from "~/views-components/project-tree-picker/project-tree-picker"; +import { PickerIdProp } from '~/store/tree-picker/picker-id'; export const CollectionNameField = () => pickerId={props.pickerId} component={ProjectTreePickerField} validate={COLLECTION_PROJECT_VALIDATION} />; + +export const CollectionPickerField = (props: PickerIdProp) => + ;