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