Skip to content

Commit ca2e7fc

Browse files
committed
Fix after review
1 parent 5a47dd3 commit ca2e7fc

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/context_menu_actions.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ type Props = {
3333
}
3434
);
3535

36-
export const ContextMenuActions: React.FunctionComponent<Props> = ({
37-
button,
38-
onChange,
39-
isOpen,
40-
...props
41-
}) => {
36+
export const ContextMenuActions = React.memo<Props>(({ button, onChange, isOpen, ...props }) => {
4237
const [isOpenState, setIsOpenState] = useState(false);
4338
const handleCloseMenu = useCallback(() => {
4439
if (onChange) {
@@ -84,4 +79,4 @@ export const ContextMenuActions: React.FunctionComponent<Props> = ({
8479
)}
8580
</EuiPopover>
8681
);
87-
};
82+
});

0 commit comments

Comments
 (0)