Reverts infiniflow/ragflow#3878
This commit is contained in:
parent
8bdf1d98a3
commit
1f0a153d0e
@ -1,16 +1,8 @@
|
|||||||
import {
|
|
||||||
Tooltip,
|
|
||||||
TooltipContent,
|
|
||||||
TooltipProvider,
|
|
||||||
TooltipTrigger,
|
|
||||||
} from '@/components/ui/tooltip';
|
|
||||||
import { useSetModalState } from '@/hooks/common-hooks';
|
import { useSetModalState } from '@/hooks/common-hooks';
|
||||||
import { FolderOutput, Import } from 'lucide-react';
|
|
||||||
import { useCallback, useEffect } from 'react';
|
import { useCallback, useEffect } from 'react';
|
||||||
import ReactFlow, {
|
import ReactFlow, {
|
||||||
Background,
|
Background,
|
||||||
ConnectionMode,
|
ConnectionMode,
|
||||||
ControlButton,
|
|
||||||
Controls,
|
Controls,
|
||||||
NodeMouseHandler,
|
NodeMouseHandler,
|
||||||
} from 'reactflow';
|
} from 'reactflow';
|
||||||
@ -200,32 +192,7 @@ function FlowCanvas({ drawerVisible, hideDrawer }: IProps) {
|
|||||||
deleteKeyCode={['Delete', 'Backspace']}
|
deleteKeyCode={['Delete', 'Backspace']}
|
||||||
>
|
>
|
||||||
<Background />
|
<Background />
|
||||||
<Controls>
|
<Controls />
|
||||||
<ControlButton
|
|
||||||
onClick={() => alert('Something magical just happened. ✨')}
|
|
||||||
>
|
|
||||||
<TooltipProvider>
|
|
||||||
<Tooltip>
|
|
||||||
<TooltipTrigger>
|
|
||||||
<Import />
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipContent>Import</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
</TooltipProvider>
|
|
||||||
</ControlButton>
|
|
||||||
<ControlButton
|
|
||||||
onClick={() => alert('Something magical just happened. ✨')}
|
|
||||||
>
|
|
||||||
<TooltipProvider>
|
|
||||||
<Tooltip>
|
|
||||||
<TooltipTrigger>
|
|
||||||
<FolderOutput />
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipContent>Export</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
</TooltipProvider>
|
|
||||||
</ControlButton>
|
|
||||||
</Controls>
|
|
||||||
</ReactFlow>
|
</ReactFlow>
|
||||||
{formDrawerVisible && (
|
{formDrawerVisible && (
|
||||||
<FormDrawer
|
<FormDrawer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user