chore(react): use connection state generics internally

This commit is contained in:
moklick
2024-07-10 12:04:23 +02:00
parent 6904b5bd49
commit b41b111af6
3 changed files with 6 additions and 16 deletions

View File

@@ -3,19 +3,7 @@ import { ReactFlow, Background, BackgroundVariant, Node, Edge, SelectionMode, Co
const MULTI_SELECT_KEY = ['Meta', 'Shift'];
const initialNodes: Node[] = [
{
id: '1',
type: 'input',
data: {
label: (
<>
<input defaultValue="hallo"></input>
</>
),
},
position: { x: 250, y: 5 },
className: 'light',
},
{ id: '1', type: 'input', data: { label: 'Node 1' }, position: { x: 250, y: 5 }, className: 'light' },
{ id: '2', data: { label: 'Node 2' }, position: { x: 100, y: 100 }, className: 'light' },
{ id: '3', data: { label: 'Node 3' }, position: { x: 400, y: 100 }, className: 'light' },
{ id: '4', data: { label: 'Node 4' }, position: { x: 400, y: 200 }, className: 'light' },