From 0c0625b58e4739a633c3f2a678369c34d5eb4ce8 Mon Sep 17 00:00:00 2001 From: Franc Camps-Febrer Date: Mon, 3 Dec 2018 18:55:24 +0000 Subject: [PATCH] Add narratives --- src/components/Dashboard.jsx | 2 +- src/components/Notification.jsx | 7 +++---- src/components/Toolbar.jsx | 1 + src/reducers/utils/validators.js | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index 1e758f2..091d969 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -23,7 +23,7 @@ class Dashboard extends React.Component { this.handleTagFilter = this.handleTagFilter.bind(this); this.updateTimerange = this.updateTimerange.bind(this); - this.eventsById = {}; + this.eventsById = {} } componentDidMount() { diff --git a/src/components/Notification.jsx b/src/components/Notification.jsx index 1bee1b9..df44225 100644 --- a/src/components/Notification.jsx +++ b/src/components/Notification.jsx @@ -28,12 +28,12 @@ export default class Notification extends React.Component{ } renderNotificationContent(notification) { - const { type, message, items } = notification; + let { type, message, items } = notification; return (
- {`${message}`} + {message}
{(items !== null) ? this.renderItems(items) : ''} @@ -48,7 +48,6 @@ export default class Notification extends React.Component{ return (
{this.props.notifications.map((notification) => { -console.log(notification) return (
this.toggleDetails() }>