From 51762f8d18692feea1eb8fb0fc4b4e2a796e2ff8 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Sat, 1 Aug 2026 17:19:58 +0530 Subject: [PATCH] loader fixes --- src/main.jsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main.jsx b/src/main.jsx index 5361ee3..d367e92 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -10,6 +10,7 @@ import { import { Box, CssBaseline, + CircularProgress, Toolbar } from "@mui/material"; import Home from './Home'; @@ -81,8 +82,17 @@ const routerMapping = [ /** Reads authConfig from AppProvider context and passes it to AuthProvider. */ function AppContent() { - const { authConfig } = useAppContext(); + const { authConfig, loading } = useAppContext(); const navigate = useNavigate(); + + if (loading) { + return ( + + + + ); + } + return ( navigate("/login")}>