diff --git a/public/app.tsx b/public/app.tsx
index e22adeeb..132bcc07 100644
--- a/public/app.tsx
+++ b/public/app.tsx
@@ -8,15 +8,9 @@ import {
Route,
RouteComponentProps,
Switch,
- useLocation,
} from 'react-router-dom';
-import {
- EuiPageSideBar,
- EuiSideNav,
- EuiFlexGroup,
- EuiFlexItem,
-} from '@elastic/eui';
-import { Navigation, APP_PATH } from './utils';
+import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
+import { APP_PATH } from './utils';
import {
Workflows,
WorkflowDetail,
@@ -24,52 +18,17 @@ import {
WorkflowsRouterProps,
} from './pages';
import { MountPoint } from '../../../src/core/public';
-import {
- constructHrefWithDataSourceId,
- getDataSourceFromURL,
-} from './utils/utils';
// styling
import './global-styles.scss';
interface Props extends RouteComponentProps {
setHeaderActionMenu: (menuMount?: MountPoint) => void;
- hideInAppSideNavBar: boolean;
}
export const FlowFrameworkDashboardsApp = (props: Props) => {
- const { setHeaderActionMenu, hideInAppSideNavBar } = props;
- const location = useLocation();
- const queryParams = getDataSourceFromURL(location);
- const dataSourceId = queryParams.dataSourceId;
- const sidebar = (
-
-
-
- );
+ const { setHeaderActionMenu } = props;
+
// Render the application DOM.
return (
@@ -78,7 +37,6 @@ export const FlowFrameworkDashboardsApp = (props: Props) => {
gutterSize="none"
className="stretch-relative"
>
- {sidebar}
{
+export const renderApp = (coreStart: CoreStart, params: AppMountParameters) => {
// This is so our base element stretches to fit the entire webpage
params.element.className = 'stretch-absolute';
ReactDOM.render(
@@ -28,7 +24,6 @@ export const renderApp = (
render={(props) => (
)}