chinwagsocial/app/javascript/mastodon/features/ui/containers/notifications_container.js
Yamagishi Kazutoshi 2e112e2406 Improve eslint rules (#3147)
* Add semi to ESLint rules

* Add padded-blocks to ESLint rules

* Add comma-dangle to ESLint rules

* add config/webpack and storyboard

* add streaming/

* yarn test:lint -- --fix
2017-05-20 17:31:47 +02:00

21 lines
516 B
JavaScript

import { connect } from 'react-redux';
import { NotificationStack } from 'react-notification';
import {
dismissAlert,
clearAlerts,
} from '../../../actions/alerts';
import { getAlerts } from '../../../selectors';
const mapStateToProps = (state, props) => ({
notifications: getAlerts(state),
});
const mapDispatchToProps = (dispatch) => {
return {
onDismiss: alert => {
dispatch(dismissAlert(alert));
},
};
};
export default connect(mapStateToProps, mapDispatchToProps)(NotificationStack);