Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade tech stack #9

Merged
merged 14 commits into from
Dec 28, 2021
Prev Previous commit
Next Next commit
feat: re-added page error boundaries
  • Loading branch information
EKarton committed Dec 28, 2021
commit ff5339c0366c3943cc9c36202fb70cbe522be98b
22 changes: 20 additions & 2 deletions src/apps/MainApp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Routes, Route } from 'react-router-dom';
import FilesListPageErrorBoundary from 'pages/ErrorBoundaries/FilesListPageErrorBoundary';
import PicturesListPageErrorBoundary from 'pages/ErrorBoundaries/PicturesListPageErrorBoundary';
import FilesListPage from 'pages/FilesListPage/index';
import FilesPage from 'pages/FilesPage/index';
import LandingPage from 'pages/LandingPage';
Expand All @@ -15,11 +17,27 @@ export default function MainApp() {
<Route path="/login" element={<LoginPage />} />
<Route path="files" element={<AppShell />}>
<Route index element={<FilesPage />} />
<Route index path=":id" element={<FilesListPage />} />
<Route
index
path=":id"
element={
<FilesListPageErrorBoundary>
<FilesListPage />
</FilesListPageErrorBoundary>
}
/>
</Route>
<Route path="pictures" element={<AppShell />}>
<Route index element={<PicturesPage />} />
<Route index path=":id" element={<PicturesListPage />} />
<Route
index
path=":id"
element={
<PicturesListPageErrorBoundary>
<PicturesListPage />
</PicturesListPageErrorBoundary>
}
/>
</Route>
<Route path="/logout" element={<LogoutPage />} />
</Routes>
Expand Down