put task routes back w/ burnettk

This commit is contained in:
jasquat 2022-06-29 12:47:30 -04:00
parent b5ae21e8c9
commit 990daec696
1 changed files with 4 additions and 19 deletions

View File

@ -5,19 +5,8 @@ import { BrowserRouter, Routes, Route } from 'react-router-dom';
import ErrorContext from './contexts/ErrorContext';
import NavigationBar from './components/NavigationBar';
// import ProcessGroups from './routes/ProcessGroups';
// import ProcessGroupShow from './routes/ProcessGroupShow';
// import ProcessGroupNew from './routes/ProcessGroupNew';
// import ProcessGroupEdit from './routes/ProcessGroupEdit';
// import ProcessModelShow from './routes/ProcessModelShow';
// import ProcessModelEditDiagram from './routes/ProcessModelEditDiagram';
// import ProcessInstanceList from './routes/ProcessInstanceList';
// import ProcessInstanceReport from './routes/ProcessInstanceReport';
// import ProcessModelNew from './routes/ProcessModelNew';
// import ProcessModelEdit from './routes/ProcessModelEdit';
// import ProcessInstanceShow from './routes/ProcessInstanceShow';
// import TaskList from './routes/TaskList';
// import TaskShow from './routes/TaskShow';
import TaskList from './routes/TaskList';
import TaskShow from './routes/TaskShow';
import ErrorBoundary from './components/ErrorBoundary';
import AdminRoutes from './routes/AdminRoutes';
@ -37,12 +26,6 @@ export default function App() {
</div>
);
}
// <BrowserRouter basename="tasks">
// <Routes>
// <Route path="/" element={<TaskList />} />
// <Route path="/:task_id" element={<TaskShow />} />
// </Routes>
// </BrowserRouter>
return (
<ErrorContext.Provider value={errorContextValueArray}>
@ -53,6 +36,8 @@ export default function App() {
<BrowserRouter>
<Routes>
<Route path="/admin/*" element={<AdminRoutes />} />
<Route path="/tasks" element={<TaskList />} />
<Route path="/tasks/:task_id" element={<TaskShow />} />
</Routes>
</BrowserRouter>
</ErrorBoundary>