feat: introduce dummy flow editor
This commit is contained in:
@@ -21,7 +21,7 @@ export default function CreateFlow() {
|
||||
const flowId = response.data?.createFlow?.id;
|
||||
|
||||
setTimeout(() => {
|
||||
navigate(URLS.FLOW(flowId));
|
||||
navigate(URLS.FLOW_EDITOR(flowId));
|
||||
}, 1234);
|
||||
}
|
||||
|
||||
|
@@ -1,11 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import { Routes, Route } from 'react-router-dom';
|
||||
import CreateFlowPage from './create';
|
||||
import EditorLayout from 'components/EditorLayout';
|
||||
|
||||
export default function Editor() {
|
||||
export default function FlowEditor() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/create" element={<CreateFlowPage />} />
|
||||
</Routes>
|
||||
<EditorLayout />
|
||||
)
|
||||
}
|
||||
}
|
14
packages/web/src/pages/Editor/routes.tsx
Normal file
14
packages/web/src/pages/Editor/routes.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from 'react';
|
||||
import { Routes, Route } from 'react-router-dom';
|
||||
import CreateFlowPage from './create';
|
||||
import EditorPage from './index';
|
||||
|
||||
export default function EditorRoutes() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/create" element={<CreateFlowPage />} />
|
||||
|
||||
<Route path="/:flowId" element={<EditorPage />} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user