({ hasError, required, label, className, helpMessage, testcid, value, controlProps, noLabel, ...props })
| 226 | }; |
| 227 | |
| 228 | export function FormInputSQL({ hasError, required, label, className, helpMessage, testcid, value, controlProps, noLabel, ...props }) { |
| 229 | if (noLabel) { |
| 230 | return <InputSQL value={value} options={controlProps} {...props} />; |
| 231 | } else { |
| 232 | const lid = _.uniqueId('l'); |
| 233 | return ( |
| 234 | <FormInput required={required} label={label} error={hasError} className={className} helpMessage={helpMessage} testcid={testcid} lid={lid}> |
| 235 | <InputSQL value={value} options={controlProps} labelledBy={lid} {...props} /> |
| 236 | </FormInput> |
| 237 | ); |
| 238 | } |
| 239 | } |
| 240 | FormInputSQL.propTypes = { |
| 241 | hasError: PropTypes.bool, |
| 242 | required: PropTypes.bool, |
nothing calls this directly
no outgoing calls
no test coverage detected