From c1d446551bb4b23c47cbb0c45d5d3466b114264d Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 25 Oct 2018 00:17:45 +0100 Subject: [PATCH] Event Edit: upgrade material-ui. --- src/components/EventEdit.tsx | 115 +++++++++++++++++++++-------------- 1 file changed, 68 insertions(+), 47 deletions(-) diff --git a/src/components/EventEdit.tsx b/src/components/EventEdit.tsx index f9db436..cc33dbf 100644 --- a/src/components/EventEdit.tsx +++ b/src/components/EventEdit.tsx @@ -1,14 +1,20 @@ import * as React from 'react'; -import RaisedButton from 'material-ui/RaisedButton'; -import Toggle from 'material-ui/Toggle'; -import TextField from 'material-ui/TextField'; -import SelectField from 'material-ui/SelectField'; -import MenuItem from 'material-ui/MenuItem'; -import { red500, fullWhite } from 'material-ui/styles/colors'; -import IconDelete from 'material-ui/svg-icons/action/delete'; -import IconCancel from 'material-ui/svg-icons/content/clear'; -import IconSave from 'material-ui/svg-icons/content/save'; +import FormGroup from '@material-ui/core/FormGroup'; +import FormControlLabel from '@material-ui/core/FormControlLabel'; +import Switch from '@material-ui/core/Switch'; + +import Button from '@material-ui/core/Button'; +import TextField from '@material-ui/core/TextField'; +import Select from '@material-ui/core/Select'; +import MenuItem from '@material-ui/core/MenuItem'; +import FormControl from '@material-ui/core/FormControl'; +import InputLabel from '@material-ui/core/InputLabel'; +import * as colors from '@material-ui/core/colors'; + +import IconDelete from '@material-ui/icons/Delete'; +import IconCancel from '@material-ui/icons/Clear'; +import IconSave from '@material-ui/icons/Save'; import DateTimePicker from '../widgets/DateTimePicker'; @@ -197,6 +203,7 @@ class EventEdit extends React.PureComponent { fullWidth: { width: '100%', boxSizing: 'border-box' as any, + marginTop: 16, }, submit: { marginTop: 40, @@ -225,30 +232,40 @@ class EventEdit extends React.PureComponent {
- this.handleChange('journalUid', payload)} - > - {this.props.collections.map((x) => ( - - ))} - - - + + + Saving to + + + + + + + } + label="All Day" + /> +
- } + {this.props.item && - } + } - } + variant="raised" + color="secondary" style={{marginLeft: 15}} - /> + > + + Save +