@@ -19,6 +19,7 @@ import { CommunityInviteNotification } from './components/communityInviteNotific
19
19
import { NewUserInCommunityNotification } from './components/newUserInCommunityNotification' ;
20
20
import { Column } from '../../components/column' ;
21
21
import AppViewWrapper from '../../components/appViewWrapper' ;
22
+ import Head from '../../components/head' ;
22
23
import Titlebar from '../../views/titlebar' ;
23
24
import {
24
25
displayLoadingNotifications ,
@@ -45,6 +46,7 @@ import {
45
46
UpsellNullNotifications ,
46
47
} from '../../components/upsell' ;
47
48
import BrowserNotificationRequest from './components/browserNotificationRequest' ;
49
+ import generateMetaInfo from 'shared/generate-meta-info' ;
48
50
49
51
class NotificationsPure extends Component {
50
52
state : {
@@ -175,10 +177,15 @@ class NotificationsPure extends Component {
175
177
) ;
176
178
}
177
179
180
+ const { title, description } = generateMetaInfo ( {
181
+ type : 'notifications' ,
182
+ } ) ;
183
+
178
184
if ( ! data . notifications || data . notifications . edges . length === 0 ) {
179
185
return (
180
186
< AppViewWrapper >
181
187
< Column type = { 'primary' } >
188
+ < Head title = { title } description = { description } />
182
189
< UpsellNullNotifications />
183
190
</ Column >
184
191
</ AppViewWrapper >
@@ -198,15 +205,17 @@ class NotificationsPure extends Component {
198
205
199
206
return (
200
207
< FlexCol style = { { flex : '1 1 auto' } } >
208
+ < Head title = { title } description = { description } />
201
209
< Titlebar title = { 'Notifications' } provideBack = { false } noComposer />
202
210
< AppViewWrapper >
203
211
< Column type = { 'primary' } >
204
- { this . state . showWebPushPrompt &&
212
+ { this . state . showWebPushPrompt && (
205
213
< BrowserNotificationRequest
206
214
onSubscribe = { this . subscribeToWebPush }
207
215
onDismiss = { this . dismissWebPushRequest }
208
216
loading = { this . state . webPushPromptLoading }
209
- /> }
217
+ />
218
+ ) }
210
219
< InfiniteList
211
220
pageStart = { 0 }
212
221
loadMore = { data . fetchMore }
0 commit comments