From 1bfe01f618084ba19e6381aeedb90a9511f89cbe Mon Sep 17 00:00:00 2001 From: swayamName1 Date: Mon, 13 May 2024 10:52:38 +0530 Subject: [PATCH] dashboard route bug fix issue##830 --- frontend/src/app.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/app.js b/frontend/src/app.js index 00d5f7d8..88e73909 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -3,6 +3,7 @@ import { BrowserRouter as Router, Switch, Route, + Redirect, useLocation, } from "react-router-dom"; import { SimpleToast } from "../src/components/util/Toast/index"; @@ -30,7 +31,7 @@ import { Setting } from "./pages/Admin/Components/Setting"; import { PrivacyPolicy } from "./pages/PrivacyPolicy/index"; import { Resources } from "./pages/Resources/index"; import { Faq } from "./pages/Faq"; -import Ques from "./pages/Q&A/Q&A.jsx" +import Ques from "./pages/Q&A/Q&A.jsx"; import { Broadcast } from "./pages/Broadcast/index"; import { AllBroadcasts } from "./pages/Broadcast/Component/AllBroadcasts/index"; import { GetInvolved } from "./pages/GetInvolved"; @@ -81,7 +82,13 @@ const App = () => { path="/dashboard" render={() => } /> - ) : null} + ) : ( + } + /> + )}