Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const hasError =
AsyncCreatableSelectInput.isTouched(this.props.touched) &&
hasErrors(this.props.errors);
return (
<Constraints.Horizontal constraint={this.props.horizontalConstraint}>
<Spacings.Stack scale="xs">
<FieldLabel
title={this.props.title}
hint={this.props.hint}
description={this.props.description}
onInfoButtonClick={this.props.onInfoButtonClick}
hintIcon={this.props.hintIcon}
badge={this.props.badge}
hasRequiredIndicator={this.props.isRequired}
htmlFor={this.state.id}
/>
<AsyncCreatableSelectInput
horizontalConstraint="scale"