This commit is contained in:
Николай 2023-05-14 23:42:45 +04:00
parent b43b77ac12
commit 39fa662ca5

View File

@ -1,6 +1,4 @@
import { Routes, BrowserRouter, Route } from 'react-router-dom'; import { Routes, BrowserRouter, Route } from 'react-router-dom';
import Creator from './MainS/Creator';
import Reader from './MainS/Reader';
import Header from './components/Header'; import Header from './components/Header';
import CreatorAction from './Main/CreatorAction'; import CreatorAction from './Main/CreatorAction';
import ReaderAction from './Main/ReaderAction'; import ReaderAction from './Main/ReaderAction';
@ -16,9 +14,6 @@ function Router(props) {
} }
export default function App() { export default function App() {
const routes = [
{ index: true, element: <Reader /> },
];
const links = [ const links = [
{ path: 'catalog', label: "Catalog", userGroup: "AUTH" }, { path: 'catalog', label: "Catalog", userGroup: "AUTH" },
@ -44,8 +39,6 @@ export default function App() {
</Route> </Route>
<Route element={<PrivateRoutes userGroup="ADMIN" />}> <Route element={<PrivateRoutes userGroup="ADMIN" />}>
<Route element={<UsersPage />} path="/users" /> <Route element={<UsersPage />} path="/users" />
<Route element={<Creator />} path="/creator" />
<Route element={<Reader />} path="/reader" />
<Route element={<CreatorAction />} path="/creatorAction" /> <Route element={<CreatorAction />} path="/creatorAction" />
</Route> </Route>
</Routes> </Routes>