'use strict'; import React from 'react'; import AlertMixin from '../../mixins/alert_mixin'; import DatePicker from 'react-datepicker/dist/react-datepicker'; let InputDate = React.createClass({ mixins: [AlertMixin], getInitialState() { return { value: null, value_formatted: null, alerts: null // needed in AlertMixin }; }, handleChange(date) { this.setState({ value: date, value_formatted: date.format("YYYY-MM-DD")}); }, render: function () { let className = 'form-control input-text-ascribe'; let alerts = (this.props.submitted) ? null : this.state.alerts; return (
{alerts}
); // CAN THIS BE REMOVED??? // // - Tim? // //return ( //
// // // // //
//) } }); export default InputDate;