mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-04 17:31:41 -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;
|
||||
|
||||
export default withTracker(() => {
|
||||
const LoginFormContainer = withTracker(() => {
|
||||
// Listen for the user to login/logout and the services list to the user.
|
||||
Meteor.subscribe('servicesList');
|
||||
return ({
|
||||
user: Accounts.user(),
|
||||
});
|
||||
})(LoginForm);
|
||||
}, LoginForm);
|
||||
Accounts.ui.LoginForm = LoginFormContainer;
|
||||
export default LoginFormContainer
|
||||
|
|
Loading…
Add table
Reference in a new issue