Add cancel action to ActiveTasksTable

This commit is contained in:
Ken Hibino
2020-12-23 06:59:44 -08:00
parent cbfc1af9c0
commit 50639cabb8
7 changed files with 274 additions and 8 deletions

View File

@@ -70,7 +70,10 @@ export default function TableActions(props: Props) {
{props.menuItemActions.map((action) => (
<MenuItem
key={action.label}
onClick={action.onClick}
onClick={() => {
action.onClick();
closeMenu();
}}
disabled={action.disabled}
>
{action.label}