Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
showNotification: PropTypes.func.isRequired,
removeNotification: PropTypes.func.isRequired,
showApiErrorNotification: PropTypes.func.isRequired,
showUnexpectedErrorNotification: PropTypes.func.isRequired,
};
NotificationsFaC.displayName = 'NotificationsFaC';
const NotificationsConnector = connect(
(state, ownProps) => {
const notificationsByDomain = selectNotificationsByDomain(state);
return { notifications: notificationsByDomain[ownProps.domain] };
},
{
removeNotification,
showNotification: globalActions.showNotification,
showApiErrorNotification: globalActions.showApiErrorNotification,
showUnexpectedErrorNotification:
globalActions.showUnexpectedErrorNotification,
}
)(NotificationsFaC);
export default NotificationsConnector;