Create and use ViewportGrid component

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:04:54 +02:00
1 parent ba152f082b
commit 70ce476c32
4 files changed
+191

No files matched your search

+5
View File
@@ -2,6 +2,7 @@ import React, { useContext, useEffect, useCallback } from 'react';
import { displaySetManager, ToolBarManager } from '@ohif/core';
import { useViewModel } from '@ohif/core';
import Compose from './Compose';
import ViewportGrid from './../components/ViewportGrid.jsx';
export default function ModeRoute({
location,
@@ -85,10 +86,14 @@ export default function ModeRoute({
return (
<CombinedContextProvider>
{/* TODO: extensionManager is already provided to the extension module.
* Use it from there instead of passing as a prop here.
*/}
<LayoutComponent
extensionManager={extensionManager}
displaySetInstanceUids={displaySetInstanceUids}
toolBarLayout={toolBarLayout}
ViewportGrid={ViewportGrid}
{...layoutTemplateData.props}
/>
</CombinedContextProvider>