add notifications todo list
This commit is contained in:
parent
3d428d52fc
commit
753fb20308
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue