diff --git a/src/dashboards/Corporate/index.tsx b/src/dashboards/Corporate/index.tsx index 9e9283cf..e16028b3 100644 --- a/src/dashboards/Corporate/index.tsx +++ b/src/dashboards/Corporate/index.tsx @@ -55,6 +55,7 @@ import useUserBalance from "@/hooks/useUserBalance"; import AssignmentsPage from "../views/AssignmentsPage"; import StudentPerformancePage from "./StudentPerformancePage"; import MasterStatistical from "../MasterCorporate/MasterStatistical"; +import MasterStatisticalPage from "./MasterStatisticalPage"; interface Props { user: CorporateUser; @@ -82,8 +83,6 @@ export default function CorporateDashboard({user, linkedCorporate}: Props) { const {assignments, isLoading: isAssignmentsLoading, reload: reloadAssignments} = useAssignments({corporate: user.id}); const {balance} = useUserBalance(); - useEffect(() => console.log(assignments), [assignments]); - const {users: students, total: totalStudents, reload: reloadStudents, isLoading: isStudentsLoading} = useUsers(studentHash); const {users: teachers, total: totalTeachers, reload: reloadTeachers, isLoading: isTeachersLoading} = useUsers(teacherHash); @@ -123,32 +122,6 @@ export default function CorporateDashboard({user, linkedCorporate}: Props) { ); - // this workaround will allow us toreuse the master statistical due to master corporate restraints - // while still being able to use the corporate user - const groupedByNameCorporateIds = useMemo( - () => ({ - [user.corporateInformation?.companyInformation?.name || user.name]: [user.id], - }), - [user], - ); - const teachersAndStudents = useMemo(() => [...students, ...teachers], [students, teachers]); - const MasterStatisticalPage = () => { - return ( - <> -