Skip to content

Commit 8e36ab8

Browse files
revert link
1 parent 6616f0f commit 8e36ab8

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/pages/Contributors/Contributors.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
1619
interface Contributor {
1720
id: number;
1821
login: string;
1922
avatar_url: string;
2023
contributions: number;
2124
html_url: string;
2225
}
26+
27+
2328
const 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>

0 commit comments

Comments
 (0)