Removed createContainer

This commit is contained in:
vjrj 2018-02-07 16:37:26 +01:00
parent 86a94e37e4
commit 311b4ee1f3
8 changed files with 34 additions and 32 deletions

View file

@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { ButtonToolbar, ButtonGroup, Button } from 'react-bootstrap';
import { createContainer } from 'meteor/react-meteor-data';
import { withTracker } from 'meteor/react-meteor-data';
import { Meteor } from 'meteor/meteor';
import { Bert } from 'meteor/themeteorchef:bert';
import Subscriptions from '../../../api/Subscriptions/Subscriptions';
@ -54,7 +54,7 @@ ViewSubscription.propTypes = {
history: PropTypes.object.isRequired
};
export default createContainer(({ match }) => {
export default withTracker(({ match }) => {
const subscriptionId = match.params._id;
const subscription = Meteor.subscribe('subscriptions.view', subscriptionId);
@ -62,4 +62,4 @@ export default createContainer(({ match }) => {
loading: !subscription.ready(),
doc: Subscriptions.findOne(new Meteor.Collection.ObjectID(subscriptionId))
};
}, ViewSubscription);
})(ViewSubscription);