Add description to context menu + Improve context menu position and size

This commit is contained in:
Eric NGUYEN 2022-10-04 16:30:55 +02:00
parent 84f968a872
commit cc84e59701
4 changed files with 31 additions and 8 deletions

View file

@ -3,6 +3,7 @@ import * as React from 'react';
interface IMenuItemProps {
className?: string
text: string
title?: string
onClick: () => void
}
@ -10,6 +11,7 @@ export function MenuItem(props: IMenuItemProps): JSX.Element {
return (
<button type="button"
className={props.className}
title={props.title}
onClick={() => props.onClick()}>{props.text}
</button>
);