import React from 'react'; import { TextField, Button, FormGroup, Typography, Grid, } from '@material-ui/core'; import { ChevronLeft, ChevronRight, } from '@material-ui/icons'; import { DateTimePicker } from 'material-ui-pickers'; import { withStyles } from '@material-ui/core/styles'; import styles from '../styles'; class Basic extends React.Component { render() { const { classes, event, edit, saveChanges, } = this.props; return ( These are the basic information you need to input in order to edit an event. There might be some heavy changes in the near future as the application is still at a very early stage. edit('title', newVal.target.value)} /> edit('subtitle', newVal.target.value)} /> edit('description', newVal.target.value)} /> } rightArrowIcon={} value={event.startDatetime} helperText='Competition start date' onChange={newVal => edit('startDatetime', newVal)} /> } rightArrowIcon={} value={event.endDatetime} helperText='Competition ending date' onChange={newVal => edit('endDatetime', newVal)} /> ); } } export default withStyles(styles)(Basic);