Add disabled style on non-draggable menu items (#5974)
Closes https://github.com/twentyhq/twenty/issues/5653 <img width="256" alt="Capture d’écran 2024-06-20 à 17 19 44" src="https://github.com/twentyhq/twenty/assets/22936103/c9d7e58f-818b-44f2-8aa4-4d85c8e1b6be"> <img width="231" alt="Capture d’écran 2024-06-20 à 17 20 03" src="https://github.com/twentyhq/twenty/assets/22936103/5e981e93-9d59-403a-bb6b-0ff75151ace2">
This commit is contained in:
@ -117,7 +117,7 @@ export const ViewPickerListContent = () => {
|
||||
)}
|
||||
/>
|
||||
{indexView && (
|
||||
<MenuItem
|
||||
<MenuItemDraggable
|
||||
key={indexView.id}
|
||||
iconButtons={[
|
||||
{
|
||||
@ -128,6 +128,8 @@ export const ViewPickerListContent = () => {
|
||||
onClick={() => handleViewSelect(indexView.id)}
|
||||
LeftIcon={getIcon(indexView.icon)}
|
||||
text={indexView.name}
|
||||
accent="placeholder"
|
||||
isDragDisabled
|
||||
/>
|
||||
)}
|
||||
</DropdownMenuItemsContainer>
|
||||
|
||||
Reference in New Issue
Block a user