// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { InjectedFormProps } from 'redux-form'; import { WithDialogProps } from 'store/dialog/with-dialog'; import { CollectionUpdateFormDialogData, COLLECTION_UPDATE_FORM_NAME } from 'store/collections/collection-update-actions'; import { FormDialog } from 'components/form-dialog/form-dialog'; import { CollectionNameField, CollectionDescriptionField, CollectionStorageClassesField } from 'views-components/form-fields/collection-form-fields'; import { UpdateCollectionPropertiesForm } from 'views-components/collection-properties/update-collection-properties-form'; import { FormGroup, FormLabel, StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core'; import { resourcePropertiesList } from 'views-components/resource-properties/resource-properties-list'; type CssRules = 'propertiesForm'; const styles: StyleRulesCallback = theme => ({ propertiesForm: { marginTop: theme.spacing.unit * 2, marginBottom: theme.spacing.unit * 2, }, }); type DialogCollectionProps = WithDialogProps<{}> & InjectedFormProps; export const DialogCollectionUpdate = (props: DialogCollectionProps) => ; const UpdateCollectionPropertiesList = resourcePropertiesList(COLLECTION_UPDATE_FORM_NAME); const CollectionEditFields = withStyles(styles)( ({ classes }: WithStyles) =>
Properties
);