Wire up contextModule, panelModule, layoutTemplateModule. Viewer sort of displays
This commit is contained in:
1 parent
8acd744710
commit
3cf2eb5ed8
11 files changed
+141
-85
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user