this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix backlink type

Juliet c416938f c16007f9

+17 -6
+17 -6
src/components/backlinks.tsx
··· 10 10 import { localDateFromTimestamp } from "../utils/date.js"; 11 11 import { Button } from "./button.jsx"; 12 12 13 - // the actual backlink api will probably become closer to this 13 + type Backlink = { 14 + collection: string; 15 + path: string; 16 + counts: { distinct_dids: number; records: number }; 17 + }; 18 + 14 19 const linksBySource = (links: Record<string, any>) => { 15 - let out: any[] = []; 20 + let out: Backlink[] = []; 16 21 Object.keys(links) 17 22 .toSorted() 18 23 .forEach((collection) => { ··· 50 55 {({ collection, path, counts }) => ( 51 56 <div> 52 57 <div> 53 - <div title="Collection containing linking records" class="flex items-center gap-1"> 54 - <span class="iconify lucide--book-text shrink-0"></span> 58 + <div class="flex items-center gap-1"> 59 + <span 60 + title="Collection containing linking records" 61 + class="iconify lucide--book-text shrink-0" 62 + ></span> 55 63 {collection} 56 64 </div> 57 - <div title="Record path where the link is found" class="flex items-center gap-1"> 58 - <span class="iconify lucide--route shrink-0"></span> 65 + <div class="flex items-center gap-1"> 66 + <span 67 + title="Record path where the link is found" 68 + class="iconify lucide--route shrink-0" 69 + ></span> 59 70 {path.slice(1)} 60 71 </div> 61 72 </div>