Feat: Add FormSheet. #3221 (#5377)

### What problem does this PR solve?

Feat: Add FormSheet. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-02-26 15:03:09 +08:00
committed by GitHub
parent 5c6a7cb4b8
commit 5859a3df72
10 changed files with 82 additions and 72 deletions

View File

@ -6,7 +6,7 @@ import {
} from '@xyflow/react';
import '@xyflow/react/dist/style.css';
// import ChatDrawer from '../chat/drawer';
import FormDrawer from '../form-drawer/next';
import FormSheet from '../form-sheet/next';
import {
useHandleDrop,
useSelectCanvasData,
@ -154,14 +154,14 @@ function FlowCanvas({ drawerVisible, hideDrawer }: IProps) {
<Background />
</ReactFlow>
{formDrawerVisible && (
<FormDrawer
<FormSheet
node={clickedNode}
visible={formDrawerVisible}
hideModal={hideFormDrawer}
singleDebugDrawerVisible={singleDebugDrawerVisible}
hideSingleDebugDrawer={hideSingleDebugDrawer}
showSingleDebugDrawer={showSingleDebugDrawer}
></FormDrawer>
></FormSheet>
)}
{/* {chatVisible && (
<ChatDrawer