diff --git a/src/screens/notification/container/notificationContainer.js b/src/screens/notification/container/notificationContainer.js index c4b32a728..1b2a56d2c 100644 --- a/src/screens/notification/container/notificationContainer.js +++ b/src/screens/notification/container/notificationContainer.js @@ -1,7 +1,5 @@ import React, { Component } from 'react'; -import { Alert } from 'react-native'; import { connect } from 'react-redux'; -import { injectIntl } from 'react-intl'; // Actions and Services import { getActivities, markActivityAsRead } from '../../../providers/esteem/esteem'; @@ -65,20 +63,12 @@ class NotificationContainer extends Component { }; _readAllNotification = () => { - const { username, dispatch, intl } = this.props; + const { username, dispatch } = this.props; const { notifications } = this.state; markActivityAsRead(username).then((result) => { dispatch(updateUnreadActivityCount(result.unread)); const updatedNotifications = notifications.map(item => ({ ...item, read: 1 })); this.setState({ notifications: updatedNotifications }); - Alert.alert( - intl.formatMessage({ - id: 'alert.success', - }), - intl.formatMessage({ - id: 'alert.allRead', - }), - ); }); }; @@ -102,4 +92,4 @@ const mapStateToProps = state => ({ activeBottomTab: state.ui.activeBottomTab, }); -export default connect(mapStateToProps)(injectIntl(NotificationContainer)); +export default connect(mapStateToProps)(NotificationContainer);