Skip to content

Commit 37f4baa

Browse files
committed
Break TaskActions into two sections
1 parent 2b11111 commit 37f4baa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/shared/TaskDetails/Actions.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState } from "react";
22
import { FaPython } from "react-icons/fa";
33

4+
import { BlockStack } from "@/components/ui/layout";
45
import useToastNotification from "@/hooks/useToastNotification";
56
import type { ComponentSpec } from "@/utils/componentSpec";
67
import {
@@ -110,11 +111,14 @@ const TaskActions = ({
110111
},
111112
];
112113

113-
const allActions: Action[] = [...customActions, ...sharedActions];
114-
115114
return (
116115
<>
117-
<ActionBlock actions={allActions} className={className} />
116+
<BlockStack gap="4" className={className}>
117+
<ActionBlock title="Component Actions" actions={sharedActions} />
118+
{customActions.length > 0 && (
119+
<ActionBlock title="Node Actions" actions={customActions} />
120+
)}
121+
</BlockStack>
118122

119123
{isEditDialogOpen && (
120124
<ComponentEditorDialog

0 commit comments

Comments
 (0)