diff --git a/public/components/app.tsx b/public/components/app.tsx index 2f90332..7a2882e 100644 --- a/public/components/app.tsx +++ b/public/components/app.tsx @@ -44,6 +44,24 @@ export const WorkbenchApp = ({ const isNavGroupEnabled = coreRefs?.chrome?.navGroup.getNavGroupEnabled(); const basePath = isNavGroupEnabled ? '/opensearch-query-workbench' : ''; + const renderMain = (props: any, isAccelerationFlyoutOpen: boolean, urlDataSource: string) => { + return ( +
+ ); + }; + return ( @@ -51,62 +69,19 @@ export const WorkbenchApp = ({ - ( -
- )} - /> ( -
- )} + render={(props) => renderMain(props, false, props.match.params.dataSource)} /> ( -
- )} + render={(props) => renderMain(props, true, props.match.params.dataSource)} + /> + renderMain(props, false, '')} />