Update menu items across the app (#14724)
Closes https://github.com/twentyhq/core-team-issues/issues/1568 https://github.com/user-attachments/assets/a0fe6538-8405-4b52-a6ce-7afa846ee5f3
This commit is contained in:
+3
-2
@@ -2,7 +2,7 @@ import { type WorkflowActionType } from '@/workflow/types/Workflow';
|
||||
import { getActionIconColorOrThrow } from '@/workflow/workflow-steps/workflow-actions/utils/getActionIconColorOrThrow';
|
||||
import { useTheme } from '@emotion/react';
|
||||
import { useIcons } from 'twenty-ui/display';
|
||||
import { MenuItemCommand } from 'twenty-ui/navigation';
|
||||
import { MenuItem } from 'twenty-ui/navigation';
|
||||
|
||||
type Action = { type: WorkflowActionType; label: string; icon: string };
|
||||
|
||||
@@ -22,7 +22,8 @@ export const WorkflowActionMenuItems = ({
|
||||
const Icon = getIcon(action.icon);
|
||||
|
||||
return (
|
||||
<MenuItemCommand
|
||||
<MenuItem
|
||||
withIconContainer={true}
|
||||
key={action.type}
|
||||
LeftIcon={() => (
|
||||
<Icon
|
||||
|
||||
+5
-3
@@ -15,7 +15,7 @@ import { getTriggerDefaultDefinition } from '@/workflow/workflow-trigger/utils/g
|
||||
import { useTheme } from '@emotion/react';
|
||||
import { TRIGGER_STEP_ID } from 'twenty-shared/workflow';
|
||||
import { useIcons } from 'twenty-ui/display';
|
||||
import { MenuItemCommand } from 'twenty-ui/navigation';
|
||||
import { MenuItem } from 'twenty-ui/navigation';
|
||||
|
||||
export const CommandMenuWorkflowSelectTriggerTypeContent = ({
|
||||
workflow,
|
||||
@@ -71,7 +71,8 @@ export const CommandMenuWorkflowSelectTriggerTypeContent = ({
|
||||
{DATABASE_TRIGGER_TYPES.map((action) => {
|
||||
const Icon = getIcon(action.icon);
|
||||
return (
|
||||
<MenuItemCommand
|
||||
<MenuItem
|
||||
withIconContainer={true}
|
||||
key={action.defaultLabel}
|
||||
LeftIcon={() => <Icon color={theme.color.blue} />}
|
||||
text={action.defaultLabel}
|
||||
@@ -86,7 +87,8 @@ export const CommandMenuWorkflowSelectTriggerTypeContent = ({
|
||||
{OTHER_TRIGGER_TYPES.map((action) => {
|
||||
const Icon = getIcon(action.icon);
|
||||
return (
|
||||
<MenuItemCommand
|
||||
<MenuItem
|
||||
withIconContainer={true}
|
||||
key={action.defaultLabel}
|
||||
LeftIcon={() => <Icon color={theme.color.purple} />}
|
||||
text={action.defaultLabel}
|
||||
|
||||
Reference in New Issue
Block a user