mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
26 lines
No EOL
623 B
JavaScript
26 lines
No EOL
623 B
JavaScript
import React from 'react';
|
|
import { registerComponent, Components, Routes } from 'meteor/vulcan:lib';
|
|
import { Link } from 'react-router';
|
|
|
|
const RoutePath = ({ document }) =>
|
|
<Link to={document.path}>{document.path}</Link>
|
|
|
|
const RoutesDashboard = props =>
|
|
<div className="routes">
|
|
<Components.Datatable
|
|
showSearch={false}
|
|
showNew={false}
|
|
showEdit={false}
|
|
data={Object.values(Routes)}
|
|
columns={[
|
|
'name',
|
|
{
|
|
name: 'path',
|
|
component: RoutePath
|
|
},
|
|
'componentName',
|
|
]}
|
|
/>
|
|
</div>
|
|
|
|
registerComponent('Routes', RoutesDashboard); |