Skip to content

Commit 207cfcf

Browse files
committed
feat: update DFlowFolderCreateDialogProps to include onCreate callback for folder creation
1 parent d9d74b9 commit 207cfcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/d-flow-folder/DFlowFolderCreateDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ import {Button} from "../button/Button";
77
import {FlowType} from "@code0-tech/sagittarius-graphql-types";
88
import {DFlowFolderItemPathInput} from "./DFlowFolderItemPathInput";
99

10-
export interface DFlowFolderCreateDialogProps extends DFlowFolderProps {
10+
export interface DFlowFolderCreateDialogProps {
1111
open?: boolean
1212
onOpenChange?: (open: boolean) => void
1313
flowTypeId: FlowType['id']
14+
onCreate?: (name: string, type: FlowType['id']) => void
1415
}
1516

1617
export const DFlowFolderCreateDialog: React.FC<DFlowFolderCreateDialogProps> = (props) => {

0 commit comments

Comments
 (0)