Moved glitch containers and commented unused files
This commit is contained in:
21
app/javascript/glitch/components/notification/container.js
Normal file
21
app/javascript/glitch/components/notification/container.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// Package imports //
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Mastodon imports //
|
||||
import { makeGetNotification } from '../../../mastodon/selectors';
|
||||
|
||||
// Our imports //
|
||||
import Notification from '.';
|
||||
|
||||
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);
|
@@ -11,7 +11,7 @@ import Permalink from '../../../mastodon/components/permalink';
|
||||
import emojify from '../../../mastodon/emoji';
|
||||
|
||||
// Our imports //
|
||||
import StatusContainer from '../../containers/status';
|
||||
import StatusContainer from '../status';
|
||||
|
||||
export default class Notification extends ImmutablePureComponent {
|
||||
|
||||
|
Reference in New Issue
Block a user