render()

in public/js/components/FormFields/FormFieldDateInput.js [44:62]


  render() {
    return (
        <div className={this.props.formRowClass || "form__row"}>
          {this.props.fieldLabel ? <label htmlFor={this.props.fieldName} className="form__label">{this.props.fieldLabel}</label> : false}
          <SingleDatePicker
            id="date_input"
            date={this.state.fieldValue}
            focused={this.state.focused}
            onDateChange={this.onDateChange}
            onFocusChange={({ focused }) => { this.setState({ focused }); }}
            numberOfMonths={1}
            placeholder={this.getPlaceholder()}
            isOutsideRange={this.props.isOutsideRange}
          />
          <ShowErrors errors={this.props.fieldErrors}/>
        </div>

    );
  }