From 6a0fc11ab3bc3fd58be14bccdb4f8e2f33162db5 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 24 Nov 2019 17:32:59 +0200 Subject: [PATCH] Event/task edit: improve design. --- src/components/EventEdit.tsx | 39 +++++++++++++++++++----------------- src/components/TaskEdit.tsx | 39 +++++++++++++++++++----------------- 2 files changed, 42 insertions(+), 36 deletions(-) diff --git a/src/components/EventEdit.tsx b/src/components/EventEdit.tsx index 20fe45e..4709375 100644 --- a/src/components/EventEdit.tsx +++ b/src/components/EventEdit.tsx @@ -9,6 +9,7 @@ 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 FormHelperText from '@material-ui/core/FormHelperText'; import InputLabel from '@material-ui/core/InputLabel'; import * as colors from '@material-ui/core/colors'; @@ -258,37 +259,39 @@ class EventEdit extends React.PureComponent { - - - } - label="All Day" - /> - - -
+ + FROM this.setState({ start: date })} /> -
+ -
+ + TO this.setState({ end: date })} /> -
+ + + + + } + label="All Day" + /> + { + + Start + this.setState({ start: date })} + /> + + + + Due + this.setState({ due: date })} + /> + + { /> -
- this.setState({ start: date })} - /> -
- -
- this.setState({ due: date })} - /> -
-