Stop using children
This commit is contained in:
1 parent
488bb5d266
commit
1bb204b9a5
3 files changed
+14
-12
No files matched your search
@@ -28,12 +28,11 @@ function ViewerLayout({
|
||||
rightPanels,
|
||||
viewports,
|
||||
children,
|
||||
ViewportGridComp
|
||||
}) {
|
||||
const [displaySets, setDisplaySets] = useState({});
|
||||
|
||||
const ViewportGrid = React.Children.only(children);
|
||||
debugger;
|
||||
|
||||
//const ViewportGrid = React.Children.only(children);
|
||||
|
||||
/**
|
||||
* Set body classes (tailwindcss) that don't allow vertical
|
||||
@@ -109,10 +108,10 @@ function ViewerLayout({
|
||||
<Toolbar type="secondary" tools={secondaryToolBarLayout.tools} />
|
||||
</div>
|
||||
<div className="flex flex-1 h-full overflow-hidden bg-black items-center justify-center pb-2 pt-1">
|
||||
{/*<ViewportGrid
|
||||
<ViewportGridComp
|
||||
servicesManager={servicesManager}
|
||||
viewportComponents={viewportComponents}
|
||||
/>*/}
|
||||
/>
|
||||
{/*
|
||||
viewportContents={[
|
||||
<Viewport
|
||||
|
||||
Reference in new issue
Block a user