Apply 646095da: Module settings UI fixes with moduleStore
This commit is contained in:
@@ -9,6 +9,7 @@ import { AwsAdminGuard } from "./components/auth/AwsAdminGuard";
|
||||
import GlobalErrorDisplay from "./components/common/GlobalErrorDisplay";
|
||||
import LoadingStateMonitor from "./components/common/LoadingStateMonitor";
|
||||
import { useAuthStore } from "./store/authStore";
|
||||
import { useModuleStore } from "./store/moduleStore";
|
||||
|
||||
// Auth pages - loaded immediately (needed for login)
|
||||
import SignIn from "./pages/AuthPages/SignIn";
|
||||
@@ -117,7 +118,13 @@ const Components = lazy(() => import("./pages/Components"));
|
||||
|
||||
|
||||
export default function App() {
|
||||
// All session validation removed - API interceptor handles authentication
|
||||
const { isAuthenticated } = useAuthStore();
|
||||
const { loadModuleSettings } = useModuleStore();
|
||||
|
||||
// Load global module settings immediately on mount (public endpoint, no auth required)
|
||||
useEffect(() => {
|
||||
loadModuleSettings();
|
||||
}, [loadModuleSettings]);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user