2017-03-15 10:36:02 +08:00
|
|
|
import React from 'react';
|
|
|
|
import './Button.jsx';
|
2017-03-23 16:27:59 +09:00
|
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
2017-03-15 10:36:02 +08:00
|
|
|
|
|
|
|
|
2017-03-23 12:50:49 +09:00
|
|
|
export class AccountsSocialButtons extends React.Component {
|
2017-03-15 10:36:02 +08:00
|
|
|
render() {
|
|
|
|
let { oauthServices = {}, className = "social-buttons" } = this.props;
|
|
|
|
return(
|
|
|
|
<div className={ className }>
|
|
|
|
{Object.keys(oauthServices).map((id, i) => {
|
2017-03-23 12:50:49 +09:00
|
|
|
return <Components.AccountsButton {...oauthServices[id]} key={i} />;
|
2017-03-15 10:36:02 +08:00
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-23 12:50:49 +09:00
|
|
|
registerComponent('AccountsSocialButtons', AccountsSocialButtons);
|