import React from 'react'; import { Card, CardTitle, CardText, CardActions, Button } from 'react-toolbox'; // import BigCalendar from 'react-big-calendar'; // import moment from 'moment'; // BigCalendar.setLocalizer(BigCalendar.momentLocalizer(moment)); import AddEventDialog from '../components/addeventdialog'; // eslint-disable-next-line react/prefer-stateless-function export default class PageHome extends React.Component { constructor(props) { super(props); this.state = { cards: [ { key: 0, title: 'Math Test', description: 'Meow' }, ], addEventDialogActive: false, }; this.showAddEventDialog = this.showAddEventDialog.bind(this); this.hideAddEventDialog = this.hideAddEventDialog.bind(this); } showAddEventDialog() { this.setState({ addEventDialogActive: true, }); } hideAddEventDialog() { this.setState({ addEventDialogActive: false, }); } render() { return (
{this.state.cards.map(card => {card.description}
); } }