[FEAT-2496] Add Customize fields button in new column menu (#2683)

* feat: add customize-fields btn in new column menu

* fix: refactor onClick

* Add separator

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Umar Abid
2023-12-01 21:48:38 +05:00
committed by GitHub
parent 9dc997e9ac
commit 5720312249
2 changed files with 33 additions and 16 deletions

View File

@ -39,6 +39,7 @@ export const MenuItem = ({
const showIconButtons = Array.isArray(iconButtons) && iconButtons.length > 0;
const handleMenuItemClick = (event: MouseEvent<HTMLLIElement>) => {
if (!onClick) return;
event.preventDefault();
event.stopPropagation();