chore(examples): cleanup
This commit is contained in:
@@ -2,6 +2,7 @@ import { ChangeEvent } from 'react';
|
|||||||
import { BrowserRouter, Route, Routes, useLocation, useNavigate } from 'react-router-dom';
|
import { BrowserRouter, Route, Routes, useLocation, useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
import Basic from '../examples/Basic';
|
import Basic from '../examples/Basic';
|
||||||
|
import Backgrounds from '../examples/Backgrounds';
|
||||||
import ControlledUncontrolled from '../examples/ControlledUncontrolled';
|
import ControlledUncontrolled from '../examples/ControlledUncontrolled';
|
||||||
import CustomConnectionLine from '../examples/CustomConnectionLine';
|
import CustomConnectionLine from '../examples/CustomConnectionLine';
|
||||||
import CustomNode from '../examples/CustomNode';
|
import CustomNode from '../examples/CustomNode';
|
||||||
@@ -33,6 +34,7 @@ import UseUpdateNodeInternals from '../examples/UseUpdateNodeInternals';
|
|||||||
import UseReactFlow from '../examples/UseReactFlow';
|
import UseReactFlow from '../examples/UseReactFlow';
|
||||||
import Validation from '../examples/Validation';
|
import Validation from '../examples/Validation';
|
||||||
import UseKeyPress from '../examples/UseKeyPress';
|
import UseKeyPress from '../examples/UseKeyPress';
|
||||||
|
import EdgeRouting from '../examples/EdgeRouting';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
@@ -40,8 +42,12 @@ const routes = [
|
|||||||
component: Basic,
|
component: Basic,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/default-nodes',
|
path: '/backgrounds',
|
||||||
component: DefaultNodes,
|
component: Backgrounds,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/controlled-uncontrolled',
|
||||||
|
component: ControlledUncontrolled,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/custom-connectionline',
|
path: '/custom-connectionline',
|
||||||
@@ -51,6 +57,10 @@ const routes = [
|
|||||||
path: '/custom-node',
|
path: '/custom-node',
|
||||||
component: CustomNode,
|
component: CustomNode,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/default-nodes',
|
||||||
|
component: DefaultNodes,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/draghandle',
|
path: '/draghandle',
|
||||||
component: DragHandle,
|
component: DragHandle,
|
||||||
@@ -67,6 +77,10 @@ const routes = [
|
|||||||
path: '/edge-types',
|
path: '/edge-types',
|
||||||
component: EdgeTypes,
|
component: EdgeTypes,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/edge-routing',
|
||||||
|
component: EdgeRouting,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/empty',
|
path: '/empty',
|
||||||
component: Empty,
|
component: Empty,
|
||||||
@@ -155,10 +169,6 @@ const routes = [
|
|||||||
path: '/validation',
|
path: '/validation',
|
||||||
component: Validation,
|
component: Validation,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/controlled-uncontrolled',
|
|
||||||
component: ControlledUncontrolled,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: '/use-key-press',
|
path: '/use-key-press',
|
||||||
component: UseKeyPress,
|
component: UseKeyPress,
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import ReactFlow, {
|
|||||||
useNodesState,
|
useNodesState,
|
||||||
useEdgesState,
|
useEdgesState,
|
||||||
MarkerType,
|
MarkerType,
|
||||||
|
MiniMap,
|
||||||
} from 'reactflow';
|
} from 'reactflow';
|
||||||
|
|
||||||
import styles from './multiflows.module.css';
|
import styles from './multiflows.module.css';
|
||||||
@@ -70,6 +71,7 @@ const Flow: FC<{ id: string }> = ({ id }) => {
|
|||||||
id={id}
|
id={id}
|
||||||
>
|
>
|
||||||
<Background />
|
<Background />
|
||||||
|
<MiniMap />
|
||||||
</ReactFlow>
|
</ReactFlow>
|
||||||
</ReactFlowProvider>
|
</ReactFlowProvider>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user