Restore vanilla components

This commit is contained in:
kibigo! committed 2017-11-17 19:29:16 -08:00
1 parent 45c44989c8
commit e19fc6a9f8
272 files changed
+27052 -20

No files matched your search

@@ -0,0 +1,22 @@
import { connect } from 'react-redux';
import { makeGetNotification } from '../../../selectors';
import Notification from '../components/notification';
import { mentionCompose } from '../../../actions/compose';
const makeMapStateToProps = () => {
const getNotification = makeGetNotification();
const mapStateToProps = (state, props) => ({
notification: getNotification(state, props.notification, props.accountId),
});
return mapStateToProps;
};
const mapDispatchToProps = dispatch => ({
onMention: (account, router) => {
dispatch(mentionCompose(account, router));
},
});
export default connect(makeMapStateToProps, mapDispatchToProps)(Notification);