From bf94635f538121b6344f93b78fdb1bae722a5e18 Mon Sep 17 00:00:00 2001
From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com>
Date: Thu, 5 Oct 2023 01:24:12 +0545
Subject: [PATCH] Feat error page (#875)
* feat (assets): images, icons added
* fix (button): UI fix
* feat (ErrorBoundary/UnderConstruction): Error boundary added, page under-construction UI made
* feat (errorBoundary): error boundary added to all the remaining routes
* fix (modulesDeclaration): png added to modulesDeclaration
---
src/frontend/src/routes.jsx | 116 ++++++++++++++----
.../src/types/modulesDecleration.d.ts | 1 +
2 files changed, 90 insertions(+), 27 deletions(-)
diff --git a/src/frontend/src/routes.jsx b/src/frontend/src/routes.jsx
index 7d984c8582..6cd81390ff 100755
--- a/src/frontend/src/routes.jsx
+++ b/src/frontend/src/routes.jsx
@@ -30,15 +30,27 @@ const routes = createBrowserRouter([
children: [
{
path: '/',
- element: ,
+ element: (
+
+
+
+ ),
},
{
path: '/organization',
- element: ,
+ element: (
+
+
+
+ ),
},
{
path: '/createOrganization',
- element: ,
+ element: (
+
+
+
+ ),
},
// {
// path: '/explore',
@@ -46,7 +58,11 @@ const routes = createBrowserRouter([
// },
{
path: '/tabbed',
- element: ,
+ element: (
+
+
+
+ ),
},
{
@@ -54,7 +70,9 @@ const routes = createBrowserRouter([
element: (
}>
- {' '}
+
+
+
),
@@ -65,7 +83,9 @@ const routes = createBrowserRouter([
element: (
}>
-
+
+
+
),
@@ -80,7 +100,9 @@ const routes = createBrowserRouter([
element: (
}>
-
+
+
+
),
@@ -90,7 +112,9 @@ const routes = createBrowserRouter([
element: (
}>
-
+
+
+
),
@@ -113,7 +137,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -123,7 +149,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -133,7 +161,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -143,7 +173,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -153,7 +185,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -163,7 +197,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -173,7 +209,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -183,7 +221,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -193,7 +233,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -203,7 +245,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -213,7 +257,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -223,7 +269,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -233,7 +281,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -243,7 +293,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -253,7 +305,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -263,7 +317,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -273,7 +329,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -283,7 +341,9 @@ const routes = createBrowserRouter([
element: (
Loading...}>
-
+
+
+
),
@@ -292,7 +352,9 @@ const routes = createBrowserRouter([
path: '/osmauth/',
element: (
Loading...}>
-
+
+
+
),
},
diff --git a/src/frontend/src/types/modulesDecleration.d.ts b/src/frontend/src/types/modulesDecleration.d.ts
index efa92cd54e..9e675817a7 100644
--- a/src/frontend/src/types/modulesDecleration.d.ts
+++ b/src/frontend/src/types/modulesDecleration.d.ts
@@ -1 +1,2 @@
declare module '@testing-library/react';
+declare module '*.png';