diff --git a/web/modals/input.react.js b/web/modals/input.react.js index 862f3280b..0c2dd4f78 100644 --- a/web/modals/input.react.js +++ b/web/modals/input.react.js @@ -1,42 +1,48 @@ // @flow import * as React from 'react'; import css from './input.css'; type Props = { +type: string, +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) { label = ( ); } return ( <> {label} - + ); } const ForwardedInput: React.AbstractComponent< Props, HTMLInputElement, > = React.forwardRef(Input); export default ForwardedInput;