1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Clean up header_notifications.js

This commit is contained in:
Tim Daubenschütz 2015-10-19 17:13:42 +02:00
parent 638863f4ff
commit dcb18bb451

View File

@ -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 (
<div>
<div className="notification-header">
Artworks ({this.state.pieceListNotifications.length})
{getLangText('Artworks')} ({this.state.pieceListNotifications.length})
</div>
{this.state.pieceListNotifications.map((pieceNotification, i) => {
return (
@ -92,7 +89,7 @@ let HeaderNotifications = React.createClass({
return (
<div>
<div className="notification-header">
Editions ({this.state.editionListNotifications.length})
{getLangText('Editions')} ({this.state.editionListNotifications.length})
</div>
{this.state.editionListNotifications.map((editionNotification, i) => {
return (