mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
19 lines
No EOL
554 B
JavaScript
Executable file
19 lines
No EOL
554 B
JavaScript
Executable file
import React from 'react';
|
|
import './Button.jsx';
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
|
|
|
|
export class AccountsSocialButtons extends React.Component {
|
|
render() {
|
|
let { oauthServices = {}, className = "social-buttons" } = this.props;
|
|
return(
|
|
<div className={ className }>
|
|
{Object.keys(oauthServices).map((id, i) => {
|
|
return <Components.AccountsButton {...oauthServices[id]} key={i} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
registerComponent('AccountsSocialButtons', AccountsSocialButtons); |