From 76748497d4e978b04e7614ced750a59b06e943bd Mon Sep 17 00:00:00 2001 From: Mehul Date: Fri, 8 Nov 2024 15:46:36 -0500 Subject: [PATCH] Added URL and count --- ml-nexus/src/components/Contributors.jsx | 42 +++++++++++++++++------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/ml-nexus/src/components/Contributors.jsx b/ml-nexus/src/components/Contributors.jsx index fa2008ab..916a4837 100644 --- a/ml-nexus/src/components/Contributors.jsx +++ b/ml-nexus/src/components/Contributors.jsx @@ -1,23 +1,41 @@ -import React, { useContext } from 'react' -import { repoContext } from '../utils/Context' +import React, { useContext } from 'react'; +import { repoContext } from '../utils/Context'; function Contributors() { - const { contributors } = useContext(repoContext) + const { contributors } = useContext(repoContext); + return ( <> -
-

Our Contributors

+
+

Our Contributors

- {contributors.map((c, i) =>
-
- {c.avatar_url} + {contributors.map((c, i) => ( +
+ {/* Contributor's Avatar */} +
+ {c.login} +
+ + {/* GitHub Profile Link and Username */} + + {c.login} + + + {/* Number of Contributions */} +

+ Contributions: {c.contributions} +

-

{c.login}

-
)} + ))}
- ) + ); } -export default Contributors \ No newline at end of file +export default Contributors;