File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,20 @@ import {
1111 CircularProgress ,
1212 Alert ,
1313} from "@mui/material" ;
14- import { FaGithub } from "react-icons/fa" ; // GitHub Icon
15- import axios from "axios" ;
14+ import { FaGithub } from "react-icons/fa" ;
15+ import axios from "axios"
16+ import { Link } from "react-router-dom" ;
17+
18+
1619interface Contributor {
1720 id : number ;
1821 login : string ;
1922 avatar_url : string ;
2023 contributions : number ;
2124 html_url : string ;
2225}
26+
27+
2328const ContributorsPage = ( ) => {
2429 const [ contributors , setContributors ] = useState < Contributor [ ] > ( [ ] ) ;
2530 const [ loading , setLoading ] = useState < boolean > ( true ) ;
@@ -66,6 +71,11 @@ const ContributorsPage = () => {
6671 < Grid container spacing = { 4 } >
6772 { contributors . map ( ( contributor ) => (
6873 < Grid item xs = { 12 } sm = { 6 } md = { 4 } key = { contributor . id } >
74+
75+ < Link
76+ to = { `/user/${ contributor . login } ` }
77+ style = { { textDecoration : "none" } }
78+ >
6979 < Card
7080 sx = { {
7181 textAlign : "center" ,
@@ -118,6 +128,7 @@ const ContributorsPage = () => {
118128 </ Box >
119129 </ CardContent >
120130 </ Card >
131+ </ Link >
121132 </ Grid >
122133 ) ) }
123134 </ Grid >
You can’t perform that action at this time.
0 commit comments