Ручные правки
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { FC } from "react";
|
||||
import { Navigate, Route, Routes } from "react-router-dom";
|
||||
import { TemplateProvider } from "../contexts/TemplateContext";
|
||||
import { ElementsCreation } from "../pages/ElementsCreation";
|
||||
import { ProtocolCreation } from "../pages/ProtocolCreation";
|
||||
import { TemplateSetup } from "../pages/TemplateSetup";
|
||||
import { Layout } from "./Layout";
|
||||
import { FC } from 'react'
|
||||
import { Navigate, Route, Routes } from 'react-router-dom'
|
||||
import { TemplateProvider } from '../contexts/TemplateContext'
|
||||
import { ElementsCreation } from '../pages/ElementsCreation'
|
||||
import { ProtocolCreation } from '../pages/ProtocolCreation'
|
||||
import { TemplateSetup } from '../pages/TemplateSetup'
|
||||
import { Layout } from './Layout'
|
||||
|
||||
const App: FC = () => {
|
||||
return (
|
||||
@@ -12,13 +12,23 @@ const App: FC = () => {
|
||||
<Routes>
|
||||
<Route path="/" element={<Layout />}>
|
||||
<Route index element={<Navigate to="/templates" replace />} />
|
||||
<Route path="templates" element={<TemplateSetup />} />
|
||||
<Route path="elements" element={<ElementsCreation />} />
|
||||
<Route path="create-protocol" element={<ProtocolCreation />} />
|
||||
<Route path="templates/" element={<TemplateSetup />} />
|
||||
<Route
|
||||
path="templates/:templateId/edit"
|
||||
element={<TemplateSetup />}
|
||||
/>
|
||||
<Route
|
||||
path="templates/:templateId/elements"
|
||||
element={<ElementsCreation />}
|
||||
/>
|
||||
<Route
|
||||
path="templates/:templateId/protocols"
|
||||
element={<ProtocolCreation />}
|
||||
/>
|
||||
</Route>
|
||||
</Routes>
|
||||
</TemplateProvider>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default App;
|
||||
export default App
|
||||
|
||||
Reference in New Issue
Block a user