diff --git a/app/discussions/page.tsx b/app/discussions/page.tsx index 1da399ba..4ffc6c62 100644 --- a/app/discussions/page.tsx +++ b/app/discussions/page.tsx @@ -1,7 +1,7 @@ -import { fetchGithubDiscussion } from "../../lib/discussion"; -import GithubDiscussions from "../../components/discussions/GithubDiscussions"; import { getContributors } from "@/lib/api"; import Link from "next/link"; +import GithubDiscussions from "@/components/discussions/GithubDiscussions"; +import { fetchGithubDiscussion } from "@/lib/discussion"; export default async function Page() { const discussions = await fetchGithubDiscussion(); @@ -15,39 +15,40 @@ export default async function Page() { return ( <> -
-
-

Most Helpful

-
- -
- {contributors - .filter((contributor) => contributor.points > 0) - .sort((a, b) => b.points - a.points) - .slice(0, 3) - .map((contributor, index) => ( - - - - {index + 1} +
+
+
+

Most Helpful

+
+
+ {contributors + .filter((contributor) => contributor.points > 0) + .sort((a, b) => b.points - a.points) + .slice(0, 3) + .map((contributor, index) => ( + + + + {index + 1} + + + {contributor.name} + - - {contributor.name} - - - - ))} -
-
- - Show More - + + ))} +
+
+ + Show More + +