mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 20:46:40 -04:00
25 lines
No EOL
658 B
JavaScript
25 lines
No EOL
658 B
JavaScript
import React from 'react';
|
|
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
|
import { registerComponent, Components } from 'meteor/vulcan:core';
|
|
import Settings from '../modules/settings/collection.js';
|
|
|
|
const SettingName = ({ document }) =>
|
|
<strong>{document.name}</strong>
|
|
|
|
const SettingsDashboard = props =>
|
|
<div className="settings">
|
|
<Components.Datatable
|
|
collection={Settings}
|
|
columns={[
|
|
{ name: 'name', component: SettingName },
|
|
'value',
|
|
'defaultValue',
|
|
'public',
|
|
'description'
|
|
]}
|
|
/>
|
|
</div>
|
|
|
|
registerComponent('Settings', SettingsDashboard);
|
|
|
|
export default Settings; |