diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-12 01:02:51 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-12 01:02:51 -0700 |
commit | 297921fce570bfab413bab4e16a4ae694ecc4f28 (patch) | |
tree | 279bd98fe3102bd607c222f0497b7549fbb749d8 /app/javascript/glitch/containers/notification/index.js | |
parent | 74eff5456c8655e6783ffe49a96042320af3848c (diff) |
Moved glitch files to their own location ;)
Diffstat (limited to 'app/javascript/glitch/containers/notification/index.js')
-rw-r--r-- | app/javascript/glitch/containers/notification/index.js | 21 |
1 files changed, 21 insertions, 0 deletions
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); |