import React from 'react';
import * as actions from './actions.js';
import { connect } from 'react-redux';

class StartsOnDate extends React.Component {
    render() {
        return (
            <div className="StartsOnDate">
            	<div className="field-label">Starts On</div>
            	<div className="field-label">{this.props.ScheduleTime.format('llll')}</div>
            </div>
        )
    }
}

const mapStateToProps = (state) =>{
	console.log("****** when.js state:", state.toJS())
	return {
		ScheduleTime : state.get('whenReducer').get('ScheduleTime')
	}
}

export default connect(mapStateToProps,actions)(StartsOnDate)