diff --git a/web/modals/input.react.js b/web/modals/input.react.js --- a/web/modals/input.react.js +++ b/web/modals/input.react.js @@ -9,13 +9,13 @@ +placeholder: string, +value: string, +onChange: (value: SyntheticEvent) => mixed, - +disabled: boolean, + +disabled?: boolean, +label?: string, +id?: string, }; function Input(props: Props, ref): React.Node { - const { label: labelProp, id, ...rest } = props; + const { label: labelProp, disabled = false, id, ...rest } = props; let label; if (labelProp) { @@ -29,7 +29,13 @@ return ( <> {label} - + ); }