1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { InjectedFormProps } from 'redux-form';
7 import { Grid, withStyles } from '@material-ui/core';
8 import { PropertyKeyField, PROPERTY_KEY_FIELD_NAME } from './property-key-field';
9 import { PropertyValueField, PROPERTY_VALUE_FIELD_NAME } from './property-value-field';
10 import { ProgressButton } from '~/components/progress-button/progress-button';
12 export interface ResourcePropertiesFormData {
13 [PROPERTY_KEY_FIELD_NAME]: string;
14 [PROPERTY_VALUE_FIELD_NAME]: string;
17 export const ResourcePropertiesForm = ({ handleSubmit, submitting, invalid }: InjectedFormProps<ResourcePropertiesFormData>) =>
18 <form onSubmit={handleSubmit}>
19 <Grid container spacing={16}>
24 <PropertyValueField />
39 const Button = withStyles(theme => ({
40 root: { marginTop: theme.spacing.unit }