mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-06 10:21:39 -05:00

* Option for "NO_PASSWORD" changed to "EMAIL_ONLY_NO_PASSWORD" * Added new options to accounts-password "USERNAME_AND_EMAIL_NO_PASSWORD".
19 lines
495 B
JavaScript
19 lines
495 B
JavaScript
import React from 'react';
|
|
import './Button.jsx';
|
|
import {Accounts} from 'meteor/accounts-base';
|
|
|
|
|
|
export class SocialButtons extends React.Component {
|
|
render() {
|
|
let { oauthServices = {}, className = "social_buttons" } = this.props;
|
|
return(
|
|
<div className={ className }>
|
|
{Object.keys(oauthServices).map((id, i) => {
|
|
return <Accounts.ui.Button {...oauthServices[id]} key={i} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
Accounts.ui.SocialButtons = SocialButtons;
|