From e8a4ba097a42ac13d4b37c594fd5598d1467d1ce Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Mon, 13 Jan 2025 18:04:22 +0530 Subject: [PATCH] fix: removed redundant custom menu --- .../workspace/views/quick-action.tsx | 38 +------------------ 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/web/core/components/workspace/views/quick-action.tsx b/web/core/components/workspace/views/quick-action.tsx index 68dff8d3408..c8ee029466b 100644 --- a/web/core/components/workspace/views/quick-action.tsx +++ b/web/core/components/workspace/views/quick-action.tsx @@ -114,43 +114,7 @@ export const WorkspaceViewQuickActions: React.FC = observer((props) => { - - {MENU_ITEMS.map((item) => { - if (item.shouldRender === false) return null; - return ( - { - e.preventDefault(); - e.stopPropagation(); - item.action(); - }} - className={cn( - "flex items-center gap-2", - { - "text-custom-text-400": item.disabled, - }, - item.className - )} - disabled={item.disabled} - > - {item.icon && } -
-
{item.title}
- {item.description && ( -

- {item.description} -

- )} -
-
- ); - })} -
+ {customButton} ); });