Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: removed redundant custom menu (#6388)

Vamsi Krishna75d14e7c3a5e
diff --git a/web/core/components/workspace/views/quick-action.tsx b/web/core/components/workspace/views/quick-action.tsx
index 68dff8d340..c8ee029466 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<Props> = observer((props) => {
<ContextMenu parentRef={parentRef} items={MENU_ITEMS} />
- <CustomMenu customButton={customButton} placement="bottom-end" menuItemsClassName="z-20" closeOnSelect>
- {MENU_ITEMS.map((item) => {
- if (item.shouldRender === false) return null;
- return (
- <CustomMenu.MenuItem
- key={item.key}
- onClick={(e) => {
- 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.icon className={cn("h-3 w-3", item.iconClassName)} />}
- <div>
- <h5>{item.title}</h5>
- {item.description && (
- <p
- className={cn("text-custom-text-300 whitespace-pre-line", {
- "text-custom-text-400": item.disabled,
- })}
- >
- {item.description}
- </p>
- )}
- </div>
- </CustomMenu.MenuItem>
- );
- })}
- </CustomMenu>
+ {customButton}
</>
);
});