diff --git a/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/meta/index.tsx b/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/meta/index.tsx index 75a2a91a5ae8d..1d7d6a3568380 100644 --- a/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/meta/index.tsx +++ b/packages/kbn-securitysolution-exception-list-components/src/exception_item_card/meta/index.tsx @@ -16,7 +16,7 @@ import * as i18n from '../translations'; import type { Rule } from '../../types'; import { MetaInfoDetails } from './details_info'; import { HeaderMenu } from '../../header_menu'; -import { generateLinedRulesMenuItems } from '../../generate_linked_rules_menu_item'; +import { generateLinkedRulesMenuItems } from '../../generate_linked_rules_menu_item'; const itemCss = css` border-right: 1px solid #d3dae6; @@ -37,7 +37,7 @@ export const ExceptionItemCardMetaInfo = memo( const referencedLinks = useMemo( () => - generateLinedRulesMenuItems({ + generateLinkedRulesMenuItems({ dataTestSubj, linkedRules: rules, securityLinkAnchorComponent, diff --git a/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/generate_linked_rules_menu_item.test.tsx b/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/generate_linked_rules_menu_item.test.tsx index 9ddb7eeb4d32e..2158f05f63534 100644 --- a/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/generate_linked_rules_menu_item.test.tsx +++ b/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/generate_linked_rules_menu_item.test.tsx @@ -8,7 +8,7 @@ import { render } from '@testing-library/react'; import { ReactElement } from 'react'; import { ElementType } from 'react'; -import { generateLinedRulesMenuItems } from '.'; +import { generateLinkedRulesMenuItems } from '.'; import { rules } from '../mocks/rule_references.mock'; import { getSecurityLinkAction, @@ -20,7 +20,7 @@ const linkedRules = rules; describe('generateLinedRulesMenuItems', () => { it('should not render if the linkedRules length is falsy', () => { - const result = generateLinedRulesMenuItems({ + const result = generateLinkedRulesMenuItems({ dataTestSubj, linkedRules: [], securityLinkAnchorComponent: securityLinkAnchorComponentMock, @@ -28,7 +28,7 @@ describe('generateLinedRulesMenuItems', () => { expect(result).toBeNull(); }); it('should not render if the securityLinkAnchorComponent length is falsy', () => { - const result = generateLinedRulesMenuItems({ + const result = generateLinkedRulesMenuItems({ dataTestSubj, linkedRules, securityLinkAnchorComponent: null as unknown as ElementType, @@ -36,7 +36,7 @@ describe('generateLinedRulesMenuItems', () => { expect(result).toBeNull(); }); it('should render the first linked rules with left icon and does not apply the css if the length is 1', () => { - const result: ReactElement[] = generateLinedRulesMenuItems({ + const result: ReactElement[] = generateLinkedRulesMenuItems({ dataTestSubj, linkedRules, securityLinkAnchorComponent: securityLinkAnchorComponentMock, diff --git a/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/index.tsx b/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/index.tsx index 50dccf744df76..a78a76319cbb5 100644 --- a/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/index.tsx +++ b/packages/kbn-securitysolution-exception-list-components/src/generate_linked_rules_menu_item/index.tsx @@ -17,7 +17,7 @@ interface MenuItemLinkedRulesProps { securityLinkAnchorComponent: ElementType; // This property needs to be removed to avoid the Prop Drilling, once we move all the common components from x-pack/security-solution/common } -export const generateLinedRulesMenuItems = ({ +export const generateLinkedRulesMenuItems = ({ dataTestSubj, linkedRules, securityLinkAnchorComponent, diff --git a/packages/kbn-securitysolution-exception-list-components/src/list_header/menu_items/index.tsx b/packages/kbn-securitysolution-exception-list-components/src/list_header/menu_items/index.tsx index c95e312dd76c1..1e13a8ac3d0f2 100644 --- a/packages/kbn-securitysolution-exception-list-components/src/list_header/menu_items/index.tsx +++ b/packages/kbn-securitysolution-exception-list-components/src/list_header/menu_items/index.tsx @@ -11,7 +11,7 @@ import { HeaderMenu } from '../../header_menu'; import { headerMenuCss } from '../list_header.styles'; import * as i18n from '../../translations'; import { Rule } from '../../types'; -import { generateLinedRulesMenuItems } from '../../generate_linked_rules_menu_item'; +import { generateLinkedRulesMenuItems } from '../../generate_linked_rules_menu_item'; interface MenuItemsProps { isReadonly: boolean; dataTestSubj?: string; @@ -33,7 +33,7 @@ const MenuItemsComponent: FC = ({ }) => { const referencedLinks = useMemo( () => - generateLinedRulesMenuItems({ + generateLinkedRulesMenuItems({ leftIcon: 'check', dataTestSubj, linkedRules, diff --git a/packages/kbn-securitysolution-exception-list-components/src/mocks/security_link_component.mock.tsx b/packages/kbn-securitysolution-exception-list-components/src/mocks/security_link_component.mock.tsx index 114448fe1d96c..db0a64affc182 100644 --- a/packages/kbn-securitysolution-exception-list-components/src/mocks/security_link_component.mock.tsx +++ b/packages/kbn-securitysolution-exception-list-components/src/mocks/security_link_component.mock.tsx @@ -6,7 +6,7 @@ * Side Public License, v 1. */ import React, { ReactElement } from 'react'; -import { generateLinedRulesMenuItems } from '../generate_linked_rules_menu_item'; +import { generateLinkedRulesMenuItems } from '../generate_linked_rules_menu_item'; import { rules } from './rule_references.mock'; export const securityLinkAnchorComponentMock = ({ referenceName, @@ -21,7 +21,7 @@ export const securityLinkAnchorComponentMock = ({ ); export const getSecurityLinkAction = (dataTestSubj: string) => - generateLinedRulesMenuItems({ + generateLinkedRulesMenuItems({ dataTestSubj, linkedRules: [ ...rules,