X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2f320e4890a5c74bda5d10fedf6011d23585a4b0..c7bc8de8c8feccfd36b23f4228099ce86f365841:/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..410d2dfe 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 { IntInput as IntInputComponent } from '~/components/int-input/int-input'; 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 InputComponent = (props: GenericInputProps) => + ; + + +const Input = (props: GenericInputProps) => + ; +