diff --git a/src/Pages/Home/Home.jsx b/src/Pages/Home/Home.jsx index 41608cb92..537242aad 100644 --- a/src/Pages/Home/Home.jsx +++ b/src/Pages/Home/Home.jsx @@ -35,13 +35,13 @@ const Home = () => { > - - + */} { useEffect(() => { axios - .get('https://mulearn.org/api/v1/leaderboard/college-monthly/') + .get("https://mulearn.org/api/v1/leaderboard/college-monthly/") .then(function (response) { // console.log(response.data.response); setColleges(response.data.response); @@ -21,7 +21,7 @@ const MonthlyLeaderboard = () => { }); axios - .get('https://mulearn.org/api/v1/leaderboard/students-monthly/') + .get("https://mulearn.org/api/v1/leaderboard/students-monthly/") .then(function (response) { // console.log(response.data.response); setStudents(response.data.response); @@ -56,12 +56,14 @@ const MonthlyLeaderboard = () => {
- Monthly College Leader Board -
-+ Monthly College Leader Board +
+College Code: {college.code}
-{college.institution}
++ {college.institution} +
- Monthly Karma Points: {college.totalKarma} + Monthly Karma Points: {college.total_karma}
-- Monthly Students Leader Board -
-+ Monthly Students Leader Board +
+{position + 1} Position
-+ {/*
College Code: {student.institution} -
-{student.fullName}
+ */} +{student.full_name}
- Monthly Karma Points: {student.totalKarma} + Monthly Karma Points: {student.total_karma}
{/* Overall Karma Points: {student.totalKarma} */}
-{college.institution}
- Karma Points: {college.totalKarma} + Karma Points: {college.total_karma}
{/*Total Members: {college.member_count} @@ -110,9 +110,9 @@ const LeaderBoard = () => {
College Code: {student.institution}
-{student.fullName}
+{student.full_name}
- Karma Points: {student.totalKarma} + Karma Points: {student.total_karma}