diff --git a/src/components/cardbuilder/Card/CardBox.tsx b/src/components/cardbuilder/Card/CardBox.tsx index 4fe47b0e01..e09bc26bdb 100644 --- a/src/components/cardbuilder/Card/CardBox.tsx +++ b/src/components/cardbuilder/Card/CardBox.tsx @@ -11,6 +11,7 @@ import type { ItemDto } from 'types/base/models/item-dto'; import type { CardOptions } from 'types/cardOptions'; interface CardBoxProps { + action: string; item: ItemDto; cardOptions: CardOptions; className: string; @@ -23,6 +24,7 @@ interface CardBoxProps { } const CardBox: FC = ({ + action, item, cardOptions, className, @@ -57,6 +59,7 @@ const CardBox: FC = ({ {layoutManager.desktop && !cardOptions.disableHoverMenu && ( diff --git a/src/components/cardbuilder/Card/CardHoverMenu.tsx b/src/components/cardbuilder/Card/CardHoverMenu.tsx index 24b62f895b..a261e4f6f0 100644 --- a/src/components/cardbuilder/Card/CardHoverMenu.tsx +++ b/src/components/cardbuilder/Card/CardHoverMenu.tsx @@ -15,11 +15,13 @@ import type { ItemDto } from 'types/base/models/item-dto'; import type { CardOptions } from 'types/cardOptions'; interface CardHoverMenuProps { + action: string, item: ItemDto; cardOptions: CardOptions; } const CardHoverMenu: FC = ({ + action, item, cardOptions }) => { @@ -37,7 +39,8 @@ const CardHoverMenu: FC = ({ return ( ({ + action, item, cardOptions, className: cardBoxClass,