File tree Expand file tree Collapse file tree
src/components/AwesomeArcadeList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { Extension } from "@/scripts/FetchListsFromCMS/types";
22import React from "react" ;
33import Link from "next/link" ;
44import { smoothScrollHash } from "@/components/Linkable/Header" ;
5+ import { AvatarImageRenderer } from "@/components/Blog/Elements" ;
56
67export function ExtensionTableOfContents ( {
78 list,
@@ -13,6 +14,10 @@ export function ExtensionTableOfContents({
1314 { list . map ( ( ext ) => (
1415 < li key = { ext . repo } >
1516 < Link href = { `#${ ext . repo } ` } onClick = { smoothScrollHash } >
17+ < AvatarImageRenderer
18+ url = { `https://github.com/${ ext . author } .png?size=16` }
19+ name = { ext . author }
20+ /> { " " }
1621 { ext . repo }
1722 </ Link >
1823 </ li >
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { Tool } from "@/scripts/FetchListsFromCMS/types";
22import React from "react" ;
33import Link from "next/link" ;
44import { smoothScrollHash } from "@/components/Linkable/Header" ;
5+ import { AvatarImageRenderer } from "@/components/Blog/Elements" ;
56
67export function ToolTableOfContents ( {
78 list,
@@ -10,10 +11,14 @@ export function ToolTableOfContents({
1011} ) : React . ReactNode {
1112 return (
1213 < ul >
13- { list . map ( ( ext ) => (
14- < li key = { ext . repo } >
15- < Link href = { `#${ ext . repo } ` } onClick = { smoothScrollHash } >
16- { ext . repo }
14+ { list . map ( ( tool ) => (
15+ < li key = { tool . repo } >
16+ < Link href = { `#${ tool . repo } ` } onClick = { smoothScrollHash } >
17+ < AvatarImageRenderer
18+ url = { `https://github.com/${ tool . author } .png?size=16` }
19+ name = { tool . author }
20+ /> { " " }
21+ { tool . repo }
1722 </ Link >
1823 </ li >
1924 ) ) }
You can’t perform that action at this time.
0 commit comments