We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a47dd3 commit ca2e7fcCopy full SHA for ca2e7fc
1 file changed
x-pack/plugins/ingest_manager/public/applications/ingest_manager/components/context_menu_actions.tsx
@@ -33,12 +33,7 @@ type Props = {
33
}
34
);
35
36
-export const ContextMenuActions: React.FunctionComponent<Props> = ({
37
- button,
38
- onChange,
39
- isOpen,
40
- ...props
41
-}) => {
+export const ContextMenuActions = React.memo<Props>(({ button, onChange, isOpen, ...props }) => {
42
const [isOpenState, setIsOpenState] = useState(false);
43
const handleCloseMenu = useCallback(() => {
44
if (onChange) {
@@ -84,4 +79,4 @@ export const ContextMenuActions: React.FunctionComponent<Props> = ({
84
79
)}
85
80
</EuiPopover>
86
81
87
-};
82
+});
0 commit comments