From f760becae8a172b65d0eaf99cfc1e130253a947c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 28 Dec 2017 16:56:25 +0000 Subject: [PATCH] Add icons to save/cancel buttons on item edit pages. --- src/components/ContactEdit.tsx | 4 ++++ src/components/EventEdit.tsx | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/components/ContactEdit.tsx b/src/components/ContactEdit.tsx index 0fe3441..4640527 100644 --- a/src/components/ContactEdit.tsx +++ b/src/components/ContactEdit.tsx @@ -7,6 +7,8 @@ import MenuItem from 'material-ui/MenuItem'; import IconAdd from 'material-ui/svg-icons/content/add'; import IconClear from 'material-ui/svg-icons/content/clear'; +import IconCancel from 'material-ui/svg-icons/content/clear'; +import IconSave from 'material-ui/svg-icons/content/save'; import * as uuid from 'uuid'; import * as ICAL from 'ical.js'; @@ -459,12 +461,14 @@ class ContactEdit extends React.PureComponent { } /> } style={{marginLeft: 15}} /> diff --git a/src/components/EventEdit.tsx b/src/components/EventEdit.tsx index 259ca80..edf10cb 100644 --- a/src/components/EventEdit.tsx +++ b/src/components/EventEdit.tsx @@ -5,6 +5,9 @@ import TextField from 'material-ui/TextField'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; +import IconCancel from 'material-ui/svg-icons/content/clear'; +import IconSave from 'material-ui/svg-icons/content/save'; + import DateTimePicker from '../widgets/DateTimePicker'; import * as uuid from 'uuid'; @@ -233,6 +236,7 @@ class EventEdit extends React.PureComponent {
} onClick={this.props.onCancel} /> @@ -240,6 +244,7 @@ class EventEdit extends React.PureComponent { type="submit" label="Save" secondary={true} + icon={} style={{marginLeft: 15}} />