Add description to context menu + Improve context menu position and size
This commit is contained in:
parent
84f968a872
commit
cc84e59701
4 changed files with 31 additions and 8 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue