diff --git a/src/screens/notification/container/notificationContainer.js b/src/screens/notification/container/notificationContainer.js
index 1b2a56d2c..b243cfa02 100644
--- a/src/screens/notification/container/notificationContainer.js
+++ b/src/screens/notification/container/notificationContainer.js
@@ -72,6 +72,12 @@ class NotificationContainer extends Component {
});
};
+ _handleOnPressLogin = () => {
+ const { navigation } = this.props;
+
+ navigation.navigate(ROUTES.SCREENS.LOGIN);
+ };
+
render() {
const { notifications } = this.state;
@@ -81,6 +87,7 @@ class NotificationContainer extends Component {
notifications={notifications}
navigateToNotificationRoute={this._navigateToNotificationRoute}
readAllNotification={this._readAllNotification}
+ handleLoginPress={this._handleOnPressLogin}
{...this.props}
/>
);
@@ -89,6 +96,7 @@ class NotificationContainer extends Component {
const mapStateToProps = state => ({
username: state.account.currentAccount.name,
+ isLoggedIn: state.application.isLoggedIn,
activeBottomTab: state.ui.activeBottomTab,
});
diff --git a/src/screens/notification/screen/notificationScreen.js b/src/screens/notification/screen/notificationScreen.js
index efc9addcb..67fc517d4 100644
--- a/src/screens/notification/screen/notificationScreen.js
+++ b/src/screens/notification/screen/notificationScreen.js
@@ -28,6 +28,8 @@ class NotificationScreen extends PureComponent {
intl,
navigateToNotificationRoute,
readAllNotification,
+ handleLoginPress,
+ isLoggedIn,
} = this.props;
return (
@@ -44,12 +46,22 @@ class NotificationScreen extends PureComponent {
})}
style={styles.notificationTab}
>
-
+ {isLoggedIn ? (
+
+ ) : (
+
+ )}