Improve notifications

This commit is contained in:
John Furrow
2016-05-21 14:36:12 -07:00
parent 7748660783
commit e8515ac16b
13 changed files with 252 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import EventTypes from '../../constants/EventTypes';
import Notification from './Notification';
import NotificationStore from '../../stores/NotificationStore';
const METHODS_TO_BIND = ['handleNotificationChange'];
@@ -31,11 +32,7 @@ export default class NotificationList extends React.Component {
getNotifications() {
return this.state.notifications.map((notification, index) => {
return (
<li className="notifications__list__item" key={index}>
{notification.content}
</li>
);
return <Notification {...notification} key={index} />;
});
}