File tree Expand file tree Collapse file tree 1 file changed +23
-17
lines changed
packages/app/src/app/pages/common/Navigation Expand file tree Collapse file tree 1 file changed +23
-17
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2- import { inject , hooksObserver } from 'app/componentConnectors' ;
2+ import { inject , hooksObserver , Observer } from 'app/componentConnectors' ;
33import { Link } from 'react-router-dom' ;
44import Media from 'react-media' ;
55import {
@@ -102,22 +102,28 @@ export const Navigation = inject('store', 'signals')(
102102 noHeightAnimation
103103 >
104104 { open => (
105- < Action
106- style = { { position : 'relative' , fontSize : '1.25rem' } }
107- onClick = { open }
108- >
109- < Tooltip
110- placement = "bottom"
111- content = {
112- userNotifications . unreadCount > 0
113- ? 'Show Notifications'
114- : 'No Notifications'
115- }
116- >
117- < BellIcon height = { 35 } />
118- { userNotifications . unreadCount > 0 && < UnreadIcon /> }
119- </ Tooltip >
120- </ Action >
105+ < Observer >
106+ { ( { store } ) => (
107+ < Action
108+ style = { { position : 'relative' , fontSize : '1.25rem' } }
109+ onClick = { open }
110+ >
111+ < Tooltip
112+ placement = "bottom"
113+ content = {
114+ store . userNotifications . unreadCount > 0
115+ ? 'Show Notifications'
116+ : 'No Notifications'
117+ }
118+ >
119+ < BellIcon height = { 35 } />
120+ { store . userNotifications . unreadCount > 0 && (
121+ < UnreadIcon />
122+ ) }
123+ </ Tooltip >
124+ </ Action >
125+ ) }
126+ </ Observer >
121127 ) }
122128 </ Overlay >
123129 ) }
You can’t perform that action at this time.
0 commit comments