Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh committed May 28, 2024
1 parent d46cc31 commit 2da2e32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import { usePageSize } from '../../common/hooks/use_page_size';
import { useKibana } from '../../common/hooks/use_kibana';
import { useCspSetupStatusApi } from '../../common/api/use_setup_status_api';
import { NoFindingsStates } from '../../components/no_findings_states';
import { useSecuritySolutionContext } from '../../application/security_solution_context';

const SEARCH_DEBOUNCE_MS = 300;

Expand Down Expand Up @@ -150,10 +149,7 @@ export const Benchmarks = () => {
sortField: 'package_policy.name',
sortOrder: 'asc',
});
const T = useSecuritySolutionContext()?.useUpsellingComponent(
'cloud_security_posture_integration_installation'
);
console.log(T);

const queryResult = useCspBenchmarkIntegrationsV2();
const lowerCaseQueryName = query.name.toLowerCase();
const benchmarkResult =
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/cloud_security_posture/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface CspSecuritySolutionContext {
pageName: CloudSecurityPosturePageId;
state?: Record<string, string | undefined>;
}>;
/** Gets the `SpyRoute` component for navigation highlighting and breadcrumbs. */
/** hook to receive registered upselling components based on the current PLI */
useUpsellingComponent: (id: UpsellingSectionId) => ComponentType | null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const cspSecuritySolutionContext: CspSecuritySolutionContext = {
const CloudSecurityPosture = () => {
const { cloudSecurityPosture } = useKibana().services;
const CloudSecurityPostureRouter = cloudSecurityPosture.getCloudSecurityPostureRouter();
console.log(useUpsellingComponent('cloud_security_posture_integration_installation'));

return (
<PluginTemplateWrapper>
Expand Down

0 comments on commit 2da2e32

Please sign in to comment.