mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
30 lines
751 B
React
30 lines
751 B
React
![]() |
import React from 'react';
|
||
|
import { registerComponent, Components } from 'meteor/vulcan:lib';
|
||
|
import Callbacks from '../modules/callbacks/collection.js';
|
||
|
|
||
|
const CallbacksName = ({ document }) =>
|
||
|
<strong>{document.name}</strong>
|
||
|
|
||
|
const CallbacksDashboard = props =>
|
||
|
<div className="settings">
|
||
|
<Components.Datatable
|
||
|
showSearch={false}
|
||
|
showEdit={false}
|
||
|
collection={Callbacks}
|
||
|
options={{
|
||
|
fragmentName: 'CallbacksFragment'
|
||
|
}}
|
||
|
columns={[
|
||
|
{ name: 'name', component: CallbacksName },
|
||
|
'arguments',
|
||
|
'returns',
|
||
|
'runs',
|
||
|
'description',
|
||
|
'hooks',
|
||
|
]}
|
||
|
/>
|
||
|
</div>
|
||
|
|
||
|
registerComponent('Callbacks', CallbacksDashboard);
|
||
|
|
||
|
export default Callbacks;
|