Wire up contextModule, panelModule, layoutTemplateModule. Viewer sort of displays

This commit is contained in:
Erik Ziegler authored and James A. Petts committed 2020-05-15 14:01:25 +02:00
1 parent 8acd744710
commit 3cf2eb5ed8
11 files changed
+141 -85

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
import React from 'react';
import {
HelloWorldContext,
AnotherHelloWorldContext,
} from './getContextModule';
function helloWorldComponent({}) {
return (
<HelloWorldContext.Consumer>
{value => (
<div>
<h2 style={{ color: 'white' }}>
{'Hello world. Context value:'}
{JSON.stringify(value)}
</h2>
</div>
)}
</HelloWorldContext.Consumer>
);
}
function getPanelModule() {
return [
{
name: 'seriesList',
iconName: 'group-layers',
iconLabel: 'Studies',
label: 'Studies',
component: helloWorldComponent,
},
{
name: 'measure',
iconName: 'list-bullets',
iconLabel: 'Measure',
label: 'Measurements',
component: helloWorldComponent,
},
];
}
export default getPanelModule;