Skip to content

Commit

Permalink
Fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Jul 21, 2020
1 parent 5a47dd3 commit ca2e7fc
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ type Props = {
}
);

export const ContextMenuActions: React.FunctionComponent<Props> = ({
button,
onChange,
isOpen,
...props
}) => {
export const ContextMenuActions = React.memo<Props>(({ button, onChange, isOpen, ...props }) => {
const [isOpenState, setIsOpenState] = useState(false);
const handleCloseMenu = useCallback(() => {
if (onChange) {
Expand Down Expand Up @@ -84,4 +79,4 @@ export const ContextMenuActions: React.FunctionComponent<Props> = ({
)}
</EuiPopover>
);
};
});

0 comments on commit ca2e7fc

Please sign in to comment.