From 2eb6c49d5a0e38d87202e73792e736af2f8de41d Mon Sep 17 00:00:00 2001 From: Maryam Saeidi Date: Thu, 19 Dec 2024 11:14:15 +0100 Subject: [PATCH] Remove profile dep --- packages/react/kibana_context/root/root_provider.test.tsx | 7 ------- packages/react/kibana_context/root/root_provider.tsx | 7 +------ packages/react/kibana_context/root/tsconfig.json | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/react/kibana_context/root/root_provider.test.tsx b/packages/react/kibana_context/root/root_provider.test.tsx index 90523ea24173..8752e03280d1 100644 --- a/packages/react/kibana_context/root/root_provider.test.tsx +++ b/packages/react/kibana_context/root/root_provider.test.tsx @@ -19,21 +19,16 @@ import type { ExecutionContextStart } from '@kbn/core-execution-context-browser' import { executionContextServiceMock } from '@kbn/core-execution-context-browser-mocks'; import { i18nServiceMock } from '@kbn/core-i18n-browser-mocks'; import { I18nStart } from '@kbn/core-i18n-browser'; -import type { UserProfileService } from '@kbn/core-user-profile-browser'; -import { userProfileServiceMock } from '@kbn/core-user-profile-browser-mocks'; import { KibanaRootContextProvider } from './root_provider'; -import { I18nStart } from '@kbn/core-i18n-browser'; describe('KibanaRootContextProvider', () => { let euiTheme: UseEuiTheme | undefined; let i18nMock: I18nStart; - let userProfile: UserProfileService; let executionContext: ExecutionContextStart; beforeEach(() => { euiTheme = undefined; i18nMock = i18nServiceMock.createStartContract(); - userProfile = userProfileServiceMock.createStart(); executionContext = executionContextServiceMock.createStartContract(); }); @@ -68,7 +63,6 @@ describe('KibanaRootContextProvider', () => { const wrapper = mountWithIntl( @@ -87,7 +81,6 @@ describe('KibanaRootContextProvider', () => { const wrapper = mountWithIntl( diff --git a/packages/react/kibana_context/root/root_provider.tsx b/packages/react/kibana_context/root/root_provider.tsx index be8ddfa3f95a..ff7374601746 100644 --- a/packages/react/kibana_context/root/root_provider.tsx +++ b/packages/react/kibana_context/root/root_provider.tsx @@ -64,11 +64,6 @@ export const KibanaRootContextProvider: FC - {rootContextProvider} - - ); + return {rootContextProvider}; } }; diff --git a/packages/react/kibana_context/root/tsconfig.json b/packages/react/kibana_context/root/tsconfig.json index 8035f8379e39..bde30f528140 100644 --- a/packages/react/kibana_context/root/tsconfig.json +++ b/packages/react/kibana_context/root/tsconfig.json @@ -22,8 +22,6 @@ "@kbn/core-i18n-browser", "@kbn/core-base-common", "@kbn/core-analytics-browser", - "@kbn/core-user-profile-browser", - "@kbn/core-user-profile-browser-mocks", "@kbn/core-execution-context-browser", "@kbn/core-execution-context-browser-mocks", "@kbn/shared-ux-router"