|
|
@ -223,6 +223,13 @@ class Notifications extends PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
let scrollContainer;
|
|
|
|
let scrollContainer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const prepend = (
|
|
|
|
|
|
|
|
<>
|
|
|
|
|
|
|
|
{needsNotificationPermission && <NotificationsPermissionBanner />}
|
|
|
|
|
|
|
|
<FilteredNotificationsBanner />
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (signedIn) {
|
|
|
|
if (signedIn) {
|
|
|
|
scrollContainer = (
|
|
|
|
scrollContainer = (
|
|
|
|
<ScrollableList
|
|
|
|
<ScrollableList
|
|
|
@ -232,7 +239,7 @@ class Notifications extends PureComponent {
|
|
|
|
showLoading={isLoading && notifications.size === 0}
|
|
|
|
showLoading={isLoading && notifications.size === 0}
|
|
|
|
hasMore={hasMore}
|
|
|
|
hasMore={hasMore}
|
|
|
|
numPending={numPending}
|
|
|
|
numPending={numPending}
|
|
|
|
prepend={needsNotificationPermission && <NotificationsPermissionBanner />}
|
|
|
|
prepend={prepend}
|
|
|
|
alwaysPrepend
|
|
|
|
alwaysPrepend
|
|
|
|
emptyMessage={emptyMessage}
|
|
|
|
emptyMessage={emptyMessage}
|
|
|
|
onLoadMore={this.handleLoadOlder}
|
|
|
|
onLoadMore={this.handleLoadOlder}
|
|
|
@ -282,8 +289,6 @@ class Notifications extends PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
{filterBarContainer}
|
|
|
|
{filterBarContainer}
|
|
|
|
|
|
|
|
|
|
|
|
<FilteredNotificationsBanner />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{scrollContainer}
|
|
|
|
{scrollContainer}
|
|
|
|
|
|
|
|
|
|
|
|
<Helmet>
|
|
|
|
<Helmet>
|
|
|
|