Stop using children
This commit is contained in:
1 parent
488bb5d266
commit
1bb204b9a5
3 files changed
+14
-12
No files matched your search
@@ -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>*/}
|
||||
|
||||
Reference in new issue
Block a user