fix: context menu icon (#4696)

This commit is contained in:
Pedro H. Köhler 2025-01-16 13:42:58 -03:00 committed by GitHub
parent ef477c29c5
commit 19931614dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,7 @@ export function adaptItem(item: MenuItem, subProps: ContextMenuProps): ContextMe
}; };
if (item.actionType === 'ShowSubMenu' && !newItem.iconRight) { if (item.actionType === 'ShowSubMenu' && !newItem.iconRight) {
newItem.iconRight = 'chevron-menu'; newItem.iconRight = 'chevron-down';
} }
if (!item.action) { if (!item.action) {
newItem.action = (itemRef, componentProps) => { newItem.action = (itemRef, componentProps) => {

View File

@ -674,6 +674,7 @@ export const Icons = {
'layout-common-2x3': (props: IconProps) => LayoutCommon2x3(props), 'layout-common-2x3': (props: IconProps) => LayoutCommon2x3(props),
pencil: (props: IconProps) => Pencil(props), pencil: (props: IconProps) => Pencil(props),
'icon-list-view': (props: IconProps) => ListView(props), 'icon-list-view': (props: IconProps) => ListView(props),
'chevron-menu': 'chevron-down',
clipboard: (props: IconProps) => Clipboard(props), clipboard: (props: IconProps) => Clipboard(props),
/** Adds an icon to the set of icons */ /** Adds an icon to the set of icons */

View File

@ -25,7 +25,7 @@ const ContextMenu = ({ items, ...props }) => {
{item.iconRight && ( {item.iconRight && (
<Icons.ByName <Icons.ByName
name={item.iconRight} name={item.iconRight}
className="inline" className="inline text-white"
/> />
)} )}
</div> </div>