mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-05 09:51:40 -05:00
Fix depreciation warning
This commit is contained in:
parent
87d531dbaa
commit
d20670531d
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { createContainer } from 'meteor/react-meteor-data';
|
import { withTracker } from 'meteor/react-meteor-data';
|
||||||
import { Accounts } from 'meteor/accounts-base';
|
import { Accounts } from 'meteor/accounts-base';
|
||||||
import { T9n } from 'meteor/softwarerero:accounts-t9n';
|
import { T9n } from 'meteor/softwarerero:accounts-t9n';
|
||||||
import { KEY_PREFIX } from '../../login_session.js';
|
import { KEY_PREFIX } from '../../login_session.js';
|
||||||
|
@ -1024,10 +1024,10 @@ LoginForm.defaultProps = {
|
||||||
|
|
||||||
Accounts.ui.LoginForm = LoginForm;
|
Accounts.ui.LoginForm = LoginForm;
|
||||||
|
|
||||||
export default createContainer(() => {
|
export default withTracker(() => {
|
||||||
// Listen for the user to login/logout and the services list to the user.
|
// Listen for the user to login/logout and the services list to the user.
|
||||||
Meteor.subscribe('servicesList');
|
Meteor.subscribe('servicesList');
|
||||||
return ({
|
return ({
|
||||||
user: Accounts.user(),
|
user: Accounts.user(),
|
||||||
});
|
});
|
||||||
}, LoginForm);
|
})(LoginForm);
|
||||||
|
|
Loading…
Add table
Reference in a new issue