add notifications todo list

This commit is contained in:
Connor Turland 2018-03-06 07:11:39 -05:00
parent 3d428d52fc
commit 753fb20308

View file

@ -6,6 +6,13 @@ import NotificationsHeader from './NotificationsHeader'
// these come from mailboxer.rb in the api repo // these come from mailboxer.rb in the api repo
const BLACKLIST = ['ACCESS_REQUEST', 'ACCESS_APPROVED', 'INVITE_TO_EDIT'] const BLACKLIST = ['ACCESS_REQUEST', 'ACCESS_APPROVED', 'INVITE_TO_EDIT']
/* TODO!!
pagination
mark read/unread
receipts
fetchNotifications
*/
function getNotificationText (notification) { function getNotificationText (notification) {
let map, topic, topic1, topic2 let map, topic, topic1, topic2
switch (notification.type) { switch (notification.type) {
@ -76,7 +83,7 @@ class Notifications extends Component {
</header> </header>
<ul className="notifications"> <ul className="notifications">
{notifications.map(n => { {notifications.map(n => {
//const receipt = this.props.receipts.find(n => n.notification_id === notification.id) // TODO: const receipt = this.props.receipts.find(n => n.notification_id === notification.id)
const receipt = { const receipt = {
is_read: false is_read: false
} }