From 75d14e7c3a5ed32e711ec00e5b3e9ec2d1f0aa8d Mon Sep 17 00:00:00 2001 From: Vamsi Krishna <46787868+mathalav55@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:00:26 +0530 Subject: [PATCH] fix: removed redundant custom menu (#6388) --- .../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 68dff8d34..c8ee02946 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} ); });