Kevin Hu
commited on
Commit
·
d3ccaa9
1
Parent(s):
1939998
Revert "Feat: Add tooltip to question item of ChunkCreatingModal #3873" (#3879)
Browse files
web/src/pages/flow/canvas/index.tsx
CHANGED
@@ -1,16 +1,8 @@
|
|
1 |
-
import {
|
2 |
-
Tooltip,
|
3 |
-
TooltipContent,
|
4 |
-
TooltipProvider,
|
5 |
-
TooltipTrigger,
|
6 |
-
} from '@/components/ui/tooltip';
|
7 |
import { useSetModalState } from '@/hooks/common-hooks';
|
8 |
-
import { FolderOutput, Import } from 'lucide-react';
|
9 |
import { useCallback, useEffect } from 'react';
|
10 |
import ReactFlow, {
|
11 |
Background,
|
12 |
ConnectionMode,
|
13 |
-
ControlButton,
|
14 |
Controls,
|
15 |
NodeMouseHandler,
|
16 |
} from 'reactflow';
|
@@ -200,32 +192,7 @@ function FlowCanvas({ drawerVisible, hideDrawer }: IProps) {
|
|
200 |
deleteKeyCode={['Delete', 'Backspace']}
|
201 |
>
|
202 |
<Background />
|
203 |
-
<Controls
|
204 |
-
<ControlButton
|
205 |
-
onClick={() => alert('Something magical just happened. ✨')}
|
206 |
-
>
|
207 |
-
<TooltipProvider>
|
208 |
-
<Tooltip>
|
209 |
-
<TooltipTrigger>
|
210 |
-
<Import />
|
211 |
-
</TooltipTrigger>
|
212 |
-
<TooltipContent>Import</TooltipContent>
|
213 |
-
</Tooltip>
|
214 |
-
</TooltipProvider>
|
215 |
-
</ControlButton>
|
216 |
-
<ControlButton
|
217 |
-
onClick={() => alert('Something magical just happened. ✨')}
|
218 |
-
>
|
219 |
-
<TooltipProvider>
|
220 |
-
<Tooltip>
|
221 |
-
<TooltipTrigger>
|
222 |
-
<FolderOutput />
|
223 |
-
</TooltipTrigger>
|
224 |
-
<TooltipContent>Export</TooltipContent>
|
225 |
-
</Tooltip>
|
226 |
-
</TooltipProvider>
|
227 |
-
</ControlButton>
|
228 |
-
</Controls>
|
229 |
</ReactFlow>
|
230 |
{formDrawerVisible && (
|
231 |
<FormDrawer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import { useSetModalState } from '@/hooks/common-hooks';
|
|
|
2 |
import { useCallback, useEffect } from 'react';
|
3 |
import ReactFlow, {
|
4 |
Background,
|
5 |
ConnectionMode,
|
|
|
6 |
Controls,
|
7 |
NodeMouseHandler,
|
8 |
} from 'reactflow';
|
|
|
192 |
deleteKeyCode={['Delete', 'Backspace']}
|
193 |
>
|
194 |
<Background />
|
195 |
+
<Controls />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
</ReactFlow>
|
197 |
{formDrawerVisible && (
|
198 |
<FormDrawer
|