fix: context menu icon (#4696)
This commit is contained in:
parent
ef477c29c5
commit
19931614dc
@ -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) => {
|
||||||
|
|||||||
@ -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 */
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user