feat: introduce dummy flow editor

This commit is contained in:
Ali BARIN
2021-12-24 17:22:06 +01:00
parent e3184aedb8
commit 11bdbf1727
14 changed files with 172 additions and 14 deletions

View File

@@ -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);
}

View File

@@ -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 />
)
}
}

View 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>
)
}