Stop using children

This commit is contained in:
Erik Ziegler committed 2020-05-18 19:49:32 +02:00
1 parent 488bb5d266
commit 1bb204b9a5
3 files changed
+14 -12

No files matched your search

+2 -3
View File
@@ -54,6 +54,7 @@ export default function ModeRoute({
Compose({ components: contextModuleProviders, children });
function ViewportGridWithDataSource(props) {
debugger;
return ViewportGrid({ ...props, dataSource });
}
@@ -88,9 +89,7 @@ export default function ModeRoute({
* Use it from there instead of passing as a prop here.
*/}
<DragAndDropProvider>
<LayoutComponent {...layoutTemplateData.props}>
<div>test</div>
</LayoutComponent>
<LayoutComponent {...layoutTemplateData.props} ViewportGridComp={ViewportGridWithDataSource}/>
</DragAndDropProvider>
</CombinedContextProvider>
{/*</ToolbarLayoutProvider>*/}