From c36605847d182f5e8ac37554cb996ea70c8eb4fb Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Wed, 4 Dec 2019 16:44:31 +0000 Subject: [PATCH] fixing missed dependencies --- .../ml/public/application/routing/routes/access_denied.tsx | 7 +++---- .../ml/public/application/routing/routes/overview.tsx | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/x-pack/legacy/plugins/ml/public/application/routing/routes/access_denied.tsx b/x-pack/legacy/plugins/ml/public/application/routing/routes/access_denied.tsx index d37a7650c2a25ed..949d75dca4199ed 100644 --- a/x-pack/legacy/plugins/ml/public/application/routing/routes/access_denied.tsx +++ b/x-pack/legacy/plugins/ml/public/application/routing/routes/access_denied.tsx @@ -6,8 +6,7 @@ import React, { FC } from 'react'; import { i18n } from '@kbn/i18n'; -import { MlRoute, PageLoader, useResolver } from '../router'; -import { KibanaConfigTypeFix } from '../../contexts/kibana'; +import { MlRoute, PageLoader, useResolver, PageProps } from '../router'; import { Page } from '../../access_denied'; const breadcrumbs = [ @@ -21,11 +20,11 @@ const breadcrumbs = [ export const accessDeniedRoute: MlRoute = { path: '/access-denied', - render: (props, config) => , + render: (props, config, deps) => , breadcrumbs, }; -const PageWrapper: FC<{ config: KibanaConfigTypeFix }> = ({ config }) => { +const PageWrapper: FC = ({ config }) => { const { context } = useResolver(undefined, config, {}); return ( diff --git a/x-pack/legacy/plugins/ml/public/application/routing/routes/overview.tsx b/x-pack/legacy/plugins/ml/public/application/routing/routes/overview.tsx index 30e5491820a5f7f..5eb50e0c0965add 100644 --- a/x-pack/legacy/plugins/ml/public/application/routing/routes/overview.tsx +++ b/x-pack/legacy/plugins/ml/public/application/routing/routes/overview.tsx @@ -8,8 +8,7 @@ import React, { FC } from 'react'; import { i18n } from '@kbn/i18n'; import { Redirect } from 'react-router-dom'; -import { MlRoute, PageLoader, useResolver } from '../router'; -import { KibanaConfigTypeFix } from '../../contexts/kibana'; +import { MlRoute, PageLoader, useResolver, PageProps } from '../router'; import { OverviewPage } from '../../overview'; import { checkFullLicense } from '../../license/check_license'; @@ -30,11 +29,11 @@ const breadcrumbs = [ export const overviewRoute: MlRoute = { path: '/overview', - render: (props, config) => , + render: (props, config, deps) => , breadcrumbs, }; -const PageWrapper: FC<{ config: KibanaConfigTypeFix }> = ({ config }) => { +const PageWrapper: FC = ({ config }) => { const { context } = useResolver(undefined, config, { checkFullLicense, checkGetJobsPrivilege,