@@ -40,10 +40,10 @@ function Notifications(): React.JSX.Element {
4040 const [ showTestingWindow , setShowTestingWindow ] = useState ( false ) ;
4141 const [ sdkDarkModeEnabled , setSdkDarkModeEnabled ] = useState ( false ) ;
4242 const [ showCustomHeader , setShowCustomHeader ] = useState ( false ) ;
43- const [ showCustomFooter , setShowCustomFooter ] = useState ( true ) ;
43+ const [ showCustomFooter , setShowCustomFooter ] = useState ( false ) ;
4444 const [ hideHeader , setHideHeader ] = useState ( false ) ;
4545 const [ hideAvatar , setHideAvatar ] = useState ( false ) ;
46- const [ showNetwork , setShowNetwork ] = useState ( true ) ;
46+ const [ showNetwork , setShowNetwork ] = useState ( false ) ;
4747 const [ windowThemeIndex , setWindowThemeIndex ] = useState ( 0 ) ;
4848 const [ showCustomEmptyComponent , setShowCustomEmptyComponent ] = useState ( false ) ;
4949 const [ showCustomNotificationCard , setShowCustomNotificationCard ] = useState ( false ) ;
@@ -52,7 +52,7 @@ function Notifications(): React.JSX.Element {
5252 backgroundColor : isDarkMode ? '#000' : '#FFF'
5353 } ;
5454
55- const { markNotificationsAsReadByDate, markAsRead } = useSiren ( ) ;
55+ const { markNotificationsAsReadByDate } = useSiren ( ) ;
5656
5757 const renderListEmpty = ( ) => {
5858 return (
@@ -164,13 +164,17 @@ function Notifications(): React.JSX.Element {
164164 < View style = { styles . contentContainer } >
165165 < SirenInbox
166166 title = 'Siren Notifications'
167- hideHeader = { hideHeader }
167+ inboxHeaderProps = { {
168+ hideHeader : hideHeader ,
169+ customHeader : showCustomHeader ? renderCustomHeader ( ) : undefined ,
170+ showBackButton : true ,
171+ onBackPress : ( ) => navigation . goBack ( ) ,
172+ } }
168173 darkMode = { sdkDarkModeEnabled }
169- cardProps = { { hideAvatar : hideAvatar , showMedia : true } }
174+ cardProps = { { hideAvatar : hideAvatar , disableAutoMarkAsRead : false } }
170175 theme = { windowThemes [ windowThemeIndex ] }
171176 customFooter = { showCustomFooter ? renderCustomFooter ( ) : undefined }
172177 listEmptyComponent = { showCustomEmptyComponent ? renderListEmpty ( ) : undefined }
173- customHeader = { showCustomHeader ? renderCustomHeader ( ) : undefined }
174178 customStyles = { {
175179 notificationCard : {
176180 avatarSize : 30 ,
@@ -183,7 +187,6 @@ function Notifications(): React.JSX.Element {
183187 }
184188 onNotificationCardClick = { ( notification : NotificationDataType ) => {
185189 console . log ( 'click on notification' ) ;
186- markAsRead ( notification . id ) ;
187190 } }
188191 onError = { ( error : SirenErrorType ) => {
189192 console . log ( `error: ${ error } ` ) ;
0 commit comments