Adding notifications column

This commit is contained in:
Eugen Rochko committed 2016-11-20 19:39:58 +01:00
1 parent da2ef4d676
commit 38dd85daab
30 files changed
+512 -76

No files matched your search

@@ -1,19 +1,19 @@
import { connect } from 'react-redux';
import { NotificationStack } from 'react-notification';
import { connect } from 'react-redux';
import { NotificationStack } from 'react-notification';
import {
dismissNotification,
clearNotifications
} from '../../../actions/notifications';
import { getNotifications } from '../../../selectors';
dismissAlert,
clearAlerts
} from '../../../actions/alerts';
import { getAlerts } from '../../../selectors';
const mapStateToProps = (state, props) => ({
notifications: getNotifications(state)
notifications: getAlerts(state)
});
const mapDispatchToProps = (dispatch) => {
return {
onDismiss: notifiction => {
dispatch(dismissNotification(notifiction));
onDismiss: alert => {
dispatch(dismissAlert(alert));
}
};
};