From a936ef2b643ffe00c21fac6bf3a560045242e1ad Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 24 Oct 2018 23:40:44 +0100 Subject: [PATCH] Journal entries: upgrade material-ui. --- src/components/JournalEntries.tsx | 52 +++++++++++++++++-------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/src/components/JournalEntries.tsx b/src/components/JournalEntries.tsx index 0692568..6f423aa 100644 --- a/src/components/JournalEntries.tsx +++ b/src/components/JournalEntries.tsx @@ -2,11 +2,14 @@ import * as Immutable from 'immutable'; import * as React from 'react'; import { List, ListItem } from '../widgets/List'; -import Dialog from 'material-ui/Dialog'; -import FlatButton from 'material-ui/FlatButton'; -import IconAdd from 'material-ui/svg-icons/content/add'; -import IconDelete from 'material-ui/svg-icons/action/delete'; -import IconEdit from 'material-ui/svg-icons/editor/mode-edit'; +import Dialog from '@material-ui/core/Dialog'; +import DialogTitle from '@material-ui/core/DialogTitle'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogActions from '@material-ui/core/DialogActions'; +import Button from '@material-ui/core/Button'; +import IconAdd from '@material-ui/icons/Add'; +import IconDelete from '@material-ui/icons/Delete'; +import IconEdit from '@material-ui/icons/Edit'; import * as ICAL from 'ical.js'; @@ -44,11 +47,11 @@ class JournalEntries extends React.PureComponent { let icon; if (syncEntry.action === EteSync.SyncEntryAction.Add) { - icon = (); + icon = (); } else if (syncEntry.action === EteSync.SyncEntryAction.Change) { - icon = (); + icon = (); } else if (syncEntry.action === EteSync.SyncEntryAction.Delete) { - icon = (); + icon = (); } let name; @@ -85,29 +88,30 @@ class JournalEntries extends React.PureComponent { ); }).reverse(); - const actions = [( - { - this.setState({dialog: undefined}); - }} - /> - ), - ]; return (
{ + onClose={() => { this.setState({dialog: undefined}); }} > -
{this.state.dialog}
+ + Raw Content + + +
{this.state.dialog}
+
+ + +
{entries}