diff --git a/packages/twenty-front/src/modules/command-menu-item/display/components/CommandMenuItemRenderer.tsx b/packages/twenty-front/src/modules/command-menu-item/display/components/CommandMenuItemRenderer.tsx index e756d741616..85d40f61017 100644 --- a/packages/twenty-front/src/modules/command-menu-item/display/components/CommandMenuItemRenderer.tsx +++ b/packages/twenty-front/src/modules/command-menu-item/display/components/CommandMenuItemRenderer.tsx @@ -31,12 +31,14 @@ const StyledPreviewWrapper = styled.div` type CommandMenuItemRendererProps = { item: CommandMenuItemFieldsFragment; + isPrimaryAction?: boolean; }; type CommandMenuItemButtonRendererProps = CommandMenuItemRendererProps; const CommandMenuItemButtonRenderer = ({ item, + isPrimaryAction = false, }: CommandMenuItemButtonRendererProps) => { const { commandMenuContextApi, isInPreviewMode } = useContext(CommandMenuContext); @@ -60,7 +62,10 @@ const CommandMenuItemButtonRenderer = ({ if (isInPreviewMode) { return ( - + ); } @@ -70,7 +75,7 @@ const CommandMenuItemButtonRenderer = ({ command={command} onClick={disabled ? undefined : handleClick} disabled={disabled} - isPrimaryAction + isPrimaryAction={isPrimaryAction} /> ); }; @@ -168,11 +173,17 @@ const CommandMenuItemSelectableRenderer = ({ // oxlint-disable-next-line twenty/effect-components export const CommandMenuItemRenderer = ({ item, + isPrimaryAction, }: CommandMenuItemRendererProps) => { const { displayType } = useContext(CommandMenuContext); if (displayType === 'button') { - return ; + return ( + + ); } if (displayType === 'listItem' || displayType === 'dropdownItem') { diff --git a/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx b/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx index eaf9a9fd8c5..cc518c49d3d 100644 --- a/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx +++ b/packages/twenty-front/src/modules/command-menu-item/display/components/PinnedCommandMenuItemButtons.tsx @@ -68,7 +68,7 @@ export const PinnedCommandMenuItemButtons = () => { - {pinnedInlineCommandMenuItems.map((item) => ( + {pinnedInlineCommandMenuItems.map((item, index) => ( { ease: 'easeInOut', }} > - + ))} diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuButton.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuButton.tsx index f51b65a811e..a465662b9ca 100644 --- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuButton.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuButton.tsx @@ -65,8 +65,8 @@ export const CommandMenuButton = ({