From bd8c9fde8b03d7e0c023972897b681ae114777ec Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Wed, 28 May 2025 23:13:38 -0400 Subject: [PATCH] Enforced the theme on the main page --- src/components/AppContent.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/AppContent.tsx b/src/components/AppContent.tsx index 3234544..b463df4 100644 --- a/src/components/AppContent.tsx +++ b/src/components/AppContent.tsx @@ -21,7 +21,8 @@ const AppContent: React.FC = () => { // Display a loading indicator while AuthContext is determining authentication status if (loading) { - return
Loading Authentication...
; + // Changed this line to use bg-background + return
Loading Authentication...
; } // Once loading is false, if no user is authenticated, display the LoginPage @@ -32,7 +33,8 @@ const AppContent: React.FC = () => { // If a user is authenticated but lacks the required permission, display an access denied message if (user && !hasPermission(UserRoles.MOD)) { return ( -
+ // Changed this line to use bg-background +

Access Denied

You do not have sufficient permissions to view this page. Your role: {user.role}. Required: {UserRoles.MOD}. @@ -44,7 +46,8 @@ const AppContent: React.FC = () => { // If loading is false, and we have a user with MOD permission and a token, render the main app content return ( -

+ // Changed this line to use bg-background +
{/* Header is now in layout.tsx */}