mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Clean up header_notifications.js
This commit is contained in:
parent
638863f4ff
commit
dcb18bb451
@ -11,16 +11,13 @@ import Nav from 'react-bootstrap/lib/Nav';
|
|||||||
import NotificationActions from '../actions/notification_actions';
|
import NotificationActions from '../actions/notification_actions';
|
||||||
import NotificationStore from '../stores/notification_store';
|
import NotificationStore from '../stores/notification_store';
|
||||||
|
|
||||||
import { mergeOptions } from '../utils/general_utils';
|
|
||||||
import { getLangText } from '../utils/lang_utils';
|
import { getLangText } from '../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
let HeaderNotifications = React.createClass({
|
let HeaderNotifications = React.createClass({
|
||||||
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
return mergeOptions(
|
return NotificationStore.getState();
|
||||||
NotificationStore.getState()
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
@ -67,7 +64,7 @@ let HeaderNotifications = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="notification-header">
|
<div className="notification-header">
|
||||||
Artworks ({this.state.pieceListNotifications.length})
|
{getLangText('Artworks')} ({this.state.pieceListNotifications.length})
|
||||||
</div>
|
</div>
|
||||||
{this.state.pieceListNotifications.map((pieceNotification, i) => {
|
{this.state.pieceListNotifications.map((pieceNotification, i) => {
|
||||||
return (
|
return (
|
||||||
@ -92,7 +89,7 @@ let HeaderNotifications = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="notification-header">
|
<div className="notification-header">
|
||||||
Editions ({this.state.editionListNotifications.length})
|
{getLangText('Editions')} ({this.state.editionListNotifications.length})
|
||||||
</div>
|
</div>
|
||||||
{this.state.editionListNotifications.map((editionNotification, i) => {
|
{this.state.editionListNotifications.map((editionNotification, i) => {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user