Replace VoidFunction type with arrow functions
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 19 Jun 2018 09:51:38 +0000 (11:51 +0200)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Tue, 19 Jun 2018 09:51:38 +0000 (11:51 +0200)
Feature #13634

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/components/data-explorer/context-menu.tsx

index 879214b4bf7ce0466c3e5d941eb78b418454d619..0b0a029adef3892640a843ad99871a38f6a59c5d 100644 (file)
@@ -19,7 +19,7 @@ export interface ContextMenuActions {
 export interface ContextMenuProps {
     anchorEl?: HTMLElement;
     item?: DataItem;
-    onClose: VoidFunction;
+    onClose: () => void;
     actions: ContextMenuActions;
 }
 
@@ -36,7 +36,7 @@ export const ContextMenu: React.SFC<ContextMenuProps> = ({ anchorEl, onClose, ac
 interface ActionsProps {
     actions: ContextMenuActions;
     item?: DataItem;
-    onClose: VoidFunction;
+    onClose: () => void;
 }
 
 const Actions: React.SFC<ActionsProps> = ({ actions, item, onClose }) =>
@@ -90,7 +90,7 @@ interface ActionProps {
     item?: DataItem;
     icon: string;
     label: string;
-    onClose: VoidFunction;
+    onClose: () => void;
 }
 
 const Action: React.SFC<ActionProps> = ({ onClick, onClose, item, icon, label }) =>