feat: fix frontend and activate imports

This commit is contained in:
Nurfog committed 2026-03-17 13:53:12 -03:00
1 parent be699ad6ab
commit 31939e31ad
24 files changed
+34 -2117

No files matched your search

+4 -4
View File
@@ -23,15 +23,15 @@ export default function AdminDashboard() {
useEffect(() => {
const fetchStats = async () => {
try {
// In a real app we'd have a specific stats endpoint,
// In a real app we'd have a specific stats endpoint,
// but for now we'll calculate from lists
const [orgs, users] = await Promise.all([
cmsApi.getOrganizations(),
const [org, users] = await Promise.all([
cmsApi.getOrganization(),
cmsApi.getAllUsers()
]);
setStats({
orgs: orgs.length,
orgs: 1, // Single tenant architecture
users: users.length,
courses: 0 // We'd need a global courses count
});
+3 -3
View File
@@ -29,12 +29,12 @@ export default function UsersPage() {
const loadData = async () => {
try {
const [usersData, orgsData] = await Promise.all([
const [usersData, orgData] = await Promise.all([
cmsApi.getAllUsers(),
cmsApi.getOrganizations()
cmsApi.getOrganization()
]);
setUsers(usersData);
setOrganizations(orgsData);
setOrganizations([orgData]); // Single tenant - wrap in array for compatibility
} catch (error) {
console.error('Failed to load data', error);
} finally {