]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/flavours/glitch/features/notifications/components/notification.js
2 import React
from 'react';
3 import PropTypes
from 'prop-types';
4 import ImmutablePropTypes
from 'react-immutable-proptypes';
5 import ImmutablePureComponent
from 'react-immutable-pure-component';
8 import StatusContainer
from 'flavours/glitch/containers/status_container';
9 import NotificationFollow
from './follow';
11 export default class Notification
extends ImmutablePureComponent
{
14 notification: ImmutablePropTypes
.map
.isRequired
,
15 hidden: PropTypes
.bool
,
16 onMoveUp: PropTypes
.func
.isRequired
,
17 onMoveDown: PropTypes
.func
.isRequired
,
18 onMention: PropTypes
.func
.isRequired
,
19 getScrollPosition: PropTypes
.func
,
20 updateScrollBottom: PropTypes
.func
,
34 switch(notification
.get('type')) {
39 id
={notification
.get('id')}
40 account
={notification
.get('account')}
41 notification
={notification
}
42 onMoveDown
={onMoveDown
}
50 containerId
={notification
.get('id')}
52 id
={notification
.get('status')}
53 notification
={notification
}
54 onMoveDown
={onMoveDown
}
57 contextType
='notifications'
58 getScrollPosition
={getScrollPosition
}
59 updateScrollBottom
={updateScrollBottom
}
66 containerId
={notification
.get('id')}
68 id
={notification
.get('status')}
69 account
={notification
.get('account')}
72 notification
={notification
}
73 onMoveDown
={onMoveDown
}
76 getScrollPosition
={getScrollPosition
}
77 updateScrollBottom
={updateScrollBottom
}
84 containerId
={notification
.get('id')}
86 id
={notification
.get('status')}
87 account
={notification
.get('account')}
90 notification
={notification
}
91 onMoveDown
={onMoveDown
}
94 getScrollPosition
={getScrollPosition
}
95 updateScrollBottom
={updateScrollBottom
}
This page took 0.092448 seconds and 4 git commands to generate.