Skip to content

Commit

Permalink
Update upselling service import to use package
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum committed Aug 24, 2023
1 parent 549902f commit 5276ffb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React, { memo, useContext } from 'react';
import type { UpsellingService } from '../../..';
import type { UpsellingService } from '@kbn/security-solution-upselling/service';

export const UpsellingProviderContext = React.createContext<UpsellingService | null>(null);

Expand Down
7 changes: 0 additions & 7 deletions x-pack/plugins/security_solution/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ import type { PluginSetup, PluginStart } from './types';
export type { TimelineModel } from './timelines/store/timeline/model';
export type { LinkItem } from './common/links';

export type {
UpsellingService,
PageUpsellings,
SectionUpsellings,
UpsellingSectionId,
} from '@kbn/security-solution-upselling/service';

export const plugin = (context: PluginInitializerContext): Plugin => new Plugin(context);

export type { PluginSetup, PluginStart };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, { memo } from 'react';
import { Provider as ReduxStoreProvider } from 'react-redux';
import type { Store } from 'redux';
import { NavigationProvider } from '@kbn/security-solution-navigation';
import type { UpsellingService } from '@kbn/security-solution-upselling/service';
import { UpsellingProvider } from '../../../../../../../common/components/upselling_provider';
import { UserPrivilegesProvider } from '../../../../../../../common/components/user_privileges/user_privileges_context';
import type { SecuritySolutionQueryClient } from '../../../../../../../common/containers/query_client/query_client_provider';
Expand All @@ -18,7 +19,6 @@ import { SecuritySolutionStartDependenciesContext } from '../../../../../../../c
import { CurrentLicense } from '../../../../../../../common/components/current_license';
import type { StartPlugins } from '../../../../../../../types';
import { useKibana } from '../../../../../../../common/lib/kibana';
import type { UpsellingService } from '../../../../../../..';

export type RenderContextProvidersProps = PropsWithChildren<{
store: Store;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

import type { CoreStart } from '@kbn/core-lifecycle-browser';
import type { UpsellingService } from '@kbn/security-solution-upselling/service';
import type { StartPlugins } from '../../../../../types';
import type { UpsellingService } from '../../../../..';

export interface FleetUiExtensionGetterOptions {
coreStart: CoreStart;
Expand Down

0 comments on commit 5276ffb

Please sign in to comment.