Skip to content

Commit 83bf296

Browse files
committed
feat: enhance DFlowFolder component with new event handlers for delete, rename, create, and select actions
1 parent 3606417 commit 83bf296

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/d-resizable/DResizable.stories.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const Folder = () => {
184184

185185
return <DLayout topContent={
186186
<Flex style={{gap: "0.35rem"}} align={"center"} justify={"space-between"} p={0.75}>
187-
<Button paddingSize={"xxs"} variant={"filled"} color={"success"}>
187+
<Button paddingSize={"xxs"} color={"success"}>
188188
<Text>Create new flow</Text>
189189
</Button>
190190
<Flex style={{gap: "0.35rem"}}>
@@ -231,7 +231,12 @@ const Folder = () => {
231231
</Flex>
232232
}>
233233
<div style={{padding: "0.75rem"}}>
234-
<DFlowFolder ref={ref} activeFlowId={"gid://sagittarius/Flow/1"}/>
234+
<DFlowFolder onDelete={contextData => console.log(contextData)}
235+
onRename={contextData => console.log(contextData)}
236+
onCreate={type => console.log(type)}
237+
onSelect={(flow) => console.log("select", flow)}
238+
ref={ref}
239+
activeFlowId={"gid://sagittarius/Flow/1"}/>
235240
</div>
236241
</DLayout>
237242
}

0 commit comments

Comments
 (0)