X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f0553f71caddcf44371c616e7177c2716b6bcb88..9c15617f293ab41ea8b8e2962ecd1d109b80a026:/src/views/run-process-panel/inputs/int-input.tsx diff --git a/src/views/run-process-panel/inputs/int-input.tsx b/src/views/run-process-panel/inputs/int-input.tsx index 60a49b61..6d0307a8 100644 --- a/src/views/run-process-panel/inputs/int-input.tsx +++ b/src/views/run-process-panel/inputs/int-input.tsx @@ -5,8 +5,9 @@ import * as React from 'react'; import { IntCommandInputParameter, getInputLabel, isRequiredInput } from '~/models/workflow'; import { Field } from 'redux-form'; -import { TextField } from '~/components/text-field/text-field'; import { isInteger } from '~/validators/is-integer'; +import { GenericInputProps, GenericInput } from '~/views/run-process-panel/inputs/generic-input'; +import { Input as MaterialInput } from '@material-ui/core'; export interface IntInputProps { input: IntCommandInputParameter; @@ -14,8 +15,8 @@ export interface IntInputProps { export const IntInput = ({ input }: IntInputProps) => parseInt(value, 10)} format={value => isNaN(value) ? '' : JSON.stringify(value)} validate={[ @@ -24,3 +25,12 @@ export const IntInput = ({ input }: IntInputProps) => : () => undefined, ]} />; +const IntInputComponent = (props: GenericInputProps) => + ; + + +const Input = (props: GenericInputProps) => + ; +