From dcb18bb451abad5cb5a4c902c9c8ae059f32cf34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Mon, 19 Oct 2015 17:13:42 +0200 Subject: [PATCH] Clean up header_notifications.js --- js/components/header_notifications.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/js/components/header_notifications.js b/js/components/header_notifications.js index 4b375685..b88c3e7f 100644 --- a/js/components/header_notifications.js +++ b/js/components/header_notifications.js @@ -11,16 +11,13 @@ import Nav from 'react-bootstrap/lib/Nav'; import NotificationActions from '../actions/notification_actions'; import NotificationStore from '../stores/notification_store'; -import { mergeOptions } from '../utils/general_utils'; import { getLangText } from '../utils/lang_utils'; let HeaderNotifications = React.createClass({ getInitialState() { - return mergeOptions( - NotificationStore.getState() - ); + return NotificationStore.getState(); }, componentDidMount() { @@ -67,7 +64,7 @@ let HeaderNotifications = React.createClass({ return (
- Artworks ({this.state.pieceListNotifications.length}) + {getLangText('Artworks')} ({this.state.pieceListNotifications.length})
{this.state.pieceListNotifications.map((pieceNotification, i) => { return ( @@ -92,7 +89,7 @@ let HeaderNotifications = React.createClass({ return (
- Editions ({this.state.editionListNotifications.length}) + {getLangText('Editions')} ({this.state.editionListNotifications.length})
{this.state.editionListNotifications.map((editionNotification, i) => { return (