X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8eb3dc9fe8b8ed991b439885f874d5cb5dc1ecd1..519b431a41a9ab4815a1e4180ee78395b74a85de:/src/views-components/resource-properties-form/resource-properties-form.tsx diff --git a/src/views-components/resource-properties-form/resource-properties-form.tsx b/src/views-components/resource-properties-form/resource-properties-form.tsx index df9ff84925..a62b3d1563 100644 --- a/src/views-components/resource-properties-form/resource-properties-form.tsx +++ b/src/views-components/resource-properties-form/resource-properties-form.tsx @@ -3,19 +3,23 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; -import { InjectedFormProps, reduxForm } from 'redux-form'; -import { Grid, Button } from '@material-ui/core'; +import { InjectedFormProps } from 'redux-form'; +import { Grid, withStyles, WithStyles } from '@material-ui/core'; import { PropertyKeyField, PROPERTY_KEY_FIELD_NAME } from './property-key-field'; import { PropertyValueField, PROPERTY_VALUE_FIELD_NAME } from './property-value-field'; +import { ProgressButton } from '~/components/progress-button/progress-button'; +import { GridClassKey } from '@material-ui/core/Grid'; export interface ResourcePropertiesFormData { [PROPERTY_KEY_FIELD_NAME]: string; [PROPERTY_VALUE_FIELD_NAME]: string; } -export const ResourcePropertiesForm = ({ handleSubmit }: InjectedFormProps) => +export type ResourcePropertiesFormProps = InjectedFormProps & WithStyles; + +export const ResourcePropertiesForm = ({ handleSubmit, submitting, invalid, classes }: ResourcePropertiesFormProps ) =>
- + @@ -23,7 +27,18 @@ export const ResourcePropertiesForm = ({ handleSubmit }: InjectedFormProps - +
; + +const Button = withStyles(theme => ({ + root: { marginTop: theme.spacing.unit } +}))(ProgressButton);