-
Notifications
You must be signed in to change notification settings - Fork 0
Admin Bugbash Fixes #209
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
base: main
Are you sure you want to change the base?
Admin Bugbash Fixes #209
Changes from all commits
501e100
db39afa
a22c5b6
186714d
ddeb91c
52174c9
f64cffa
bfb1d7e
56e7f6b
3e4e762
711c863
104ee89
77538f5
7fc7298
ea2efd2
518b29a
d6561b2
d21c358
2427faf
0e61d39
dc06b91
b3a4771
08ea5e9
0b21aa3
4d67aff
05465c2
30d87b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| import { createBrowserRouter, RouterProvider } from 'react-router-dom'; | ||
| import { | ||
| createBrowserRouter, | ||
| Navigate, | ||
| RouterProvider, | ||
| } from 'react-router-dom'; | ||
| import Root from '@containers/root'; | ||
| import NotFound from '@containers/404'; | ||
| import FormRequests from '@containers/formRequests'; | ||
|
|
@@ -9,7 +13,6 @@ import ApprovePantries from '@containers/approvePantries'; | |
| import PantryApplicationDetails from '@containers/pantryApplicationDetails'; | ||
| import VolunteerManagement from '@containers/userManagement'; | ||
| import AdminDonation from '@containers/adminDonation'; | ||
| import Homepage from '@containers/homepage'; | ||
| import AdminOrderManagement from '@containers/adminOrderManagement'; | ||
| import { Amplify } from 'aws-amplify'; | ||
| import CognitoAuthConfig from './aws-exports'; | ||
|
|
@@ -50,7 +53,7 @@ const router = createBrowserRouter([ | |
| // Public routes (no auth needed) | ||
| { | ||
| index: true, | ||
| element: <Homepage />, | ||
| element: <Navigate to={ROUTES.LOGIN} replace />, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We now have an issue that, if the user is already logged in, and is supposed to be brought straight to the profile page (one that depends entirely on backend data, unlike the homepage we used to have), itll take 30 seconds for the backend to startup before the user can actually see details on it (right now it just says No Profile Found until then). Im not sure if there is a workaround for this (or maybe its not a big deal since in theory the backend will be permanently running when its in production), but wanted to ask. |
||
| }, | ||
| { | ||
| path: ROUTES.LOGIN, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.