mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-05 18:01:39 -05:00
Merge pull request #123 from josmo/fix-react-meteor-data
Fix for the UI component calling the createContainer and assigning it…
This commit is contained in:
commit
c8d7653fc0
1 changed files with 4 additions and 2 deletions
|
@ -1024,10 +1024,12 @@ LoginForm.defaultProps = {
|
||||||
|
|
||||||
Accounts.ui.LoginForm = LoginForm;
|
Accounts.ui.LoginForm = LoginForm;
|
||||||
|
|
||||||
export default withTracker(() => {
|
const LoginFormContainer = 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);
|
||||||
|
Accounts.ui.LoginForm = LoginFormContainer;
|
||||||
|
export default LoginFormContainer
|
||||||
|
|
Loading…
Add table
Reference in a new issue