Calendar


import React, { Component, PropTypes } from 'react';
import FullCalendar from 'rc-calendar/lib/FullCalendar';
const title = 'Calendar';
const now = moment();

const defaultCalendarValue = now.clone();
defaultCalendarValue.add(-1, 'month');

class Calendar extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      type: 'month',
    };
    this.onTypeChange = this.onTypeChange.bind(this);
  }
  onTypeChange(type) {
    this.setState({
      type,
    });
  }
  render() {
      return (
      <div className="conatiner">
      <FullCalendar
          Select={Select}
          fullscreen
          defaultValue={now}
        />
        </div>
    );
  }
}
export default withNamespaces()(Calendar);

results matching ""

    No results matching ""