diff --git a/src/App.tsx b/src/App.tsx index c91c90bf..1154c24c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,6 +14,7 @@ import PastProgramsPage from "./pages/PastProgramsPage"; import StudentDashboard from "./pages/StudentDashboard"; import RegistrationForm from "./pages/RegistrationForm"; import NotFoundPage from "./pages/404"; +import MentorsStats from './pages/MentorsStats'; function App() { return ( @@ -61,6 +62,8 @@ function App() { path={ROUTER_PATHS.PASTPROGRAMS} element={} /> + } /> } /> diff --git a/src/pages/MentorsStats.tsx b/src/pages/MentorsStats.tsx new file mode 100644 index 00000000..2295c588 --- /dev/null +++ b/src/pages/MentorsStats.tsx @@ -0,0 +1,33 @@ +function MentorsStats() { + return ( +
+

+ Mentors Stats +

+ + + + + + + + + + + + + + + + + + + + + + +
MentorTotal PRsTotal CommitsTotal Lines ChangedTotal Projects
John Doe5101002
Jane Doe10202001
+
+ ); +} +export default MentorsStats; diff --git a/src/util/backend.ts b/src/util/backend.ts index 591ddbd7..d66625c3 100644 --- a/src/util/backend.ts +++ b/src/util/backend.ts @@ -7,7 +7,7 @@ async function makeBackendRequest( endpoint: string, method: AllowedBackendMethods, jwt: string | null, - body: Object | null, + body: object | null, ): Promise { const headers: { "Content-Type"?: string; diff --git a/src/util/constants.ts b/src/util/constants.ts index b2d8aea7..6c044835 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -26,6 +26,7 @@ export enum ROUTER_PATHS { // Stats routes ALL_STUDENT_STATS = "/stats/students", ALL_PROJECT_STATS = "/stats/projects", + ALl_MENTOR_STATS = "/stats/mentors", ONE_STUDENT_STATS = "/stats/student/:id", ONE_MENTOR_STATS = "/stats/mentor/:id", ONE_PROJECT_STATS = "/stats/project/:id",