From 297921fce570bfab413bab4e16a4ae694ecc4f28 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Wed, 12 Jul 2017 01:02:51 -0700 Subject: Moved glitch files to their own location ;) --- .../glitch/containers/notification/index.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/javascript/glitch/containers/notification/index.js (limited to 'app/javascript/glitch/containers/notification/index.js') diff --git a/app/javascript/glitch/containers/notification/index.js b/app/javascript/glitch/containers/notification/index.js new file mode 100644 index 000000000..783c838ae --- /dev/null +++ b/app/javascript/glitch/containers/notification/index.js @@ -0,0 +1,21 @@ +// Package imports // +import { connect } from 'react-redux'; + +// Mastodon imports // +import { makeGetNotification } from '../../../mastodon/selectors'; + +// Our imports // +import Notification from '../../components/notification'; + +const makeMapStateToProps = () => { + const getNotification = makeGetNotification(); + + const mapStateToProps = (state, props) => ({ + notification: getNotification(state, props.notification, props.accountId), + settings: state.get('local_settings'), + }); + + return mapStateToProps; +}; + +export default connect(makeMapStateToProps)(Notification); -- cgit