mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
24 lines
No EOL
638 B
JavaScript
24 lines
No EOL
638 B
JavaScript
import React from 'react';
|
|
import { registerComponent, Components, ComponentsTable } from 'meteor/vulcan:lib';
|
|
|
|
const ComponentHOCs = ({ document }) =>
|
|
<div><ul>{document.hocs.map((hoc, i) => <li key={i}>{hoc.name}</li>)}</ul></div>
|
|
|
|
const ComponentsDashboard = props =>
|
|
<div className="components">
|
|
<Components.Datatable
|
|
showSearch={false}
|
|
showNew={false}
|
|
showEdit={false}
|
|
data={Object.values(ComponentsTable)}
|
|
columns={[
|
|
'name',
|
|
{
|
|
name: 'hocs',
|
|
component: ComponentHOCs
|
|
},
|
|
]}
|
|
/>
|
|
</div>
|
|
|
|
registerComponent('Components', ComponentsDashboard); |