Option-menu-imporovements (#11309)

- icon switching : if switching layout from table to kanban
and if icon is the table icon (the default one) then automatically
update the icon to the kanban icon

- add tooltip on Layout default view to better explain why it's
unavaialble


Fixes [#689](https://github.com/twentyhq/core-team-issues/issues/689)
Fixes [#688](https://github.com/twentyhq/core-team-issues/issues/688)
Fixes [#686](https://github.com/twentyhq/core-team-issues/issues/686)
This commit is contained in:
Guillim
2025-04-01 12:31:40 +02:00
committed by GitHub
parent bc81853095
commit 9cbc2e3df0
8 changed files with 82 additions and 30 deletions

View File

@ -2,6 +2,7 @@ import { css, useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconCheck, IconChevronRight, IconComponent } from '@ui/display';
import { ReactNode } from 'react';
import { MenuItemLeftContent } from '../internals/components/MenuItemLeftContent';
import { StyledMenuItemBase } from '../internals/components/StyledMenuItemBase';
@ -47,7 +48,7 @@ type MenuItemSelectProps = {
disabled?: boolean;
hovered?: boolean;
hasSubMenu?: boolean;
contextualText?: string;
contextualText?: ReactNode;
};
export const MenuItemSelect = ({