Retro Bulletin Board Systems on atproto. Web app and TUI. lazy mirror of alyraffauf/atbbs atbbs.xyz
forums python tui atproto bbs
3
fork

Configure Feed

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

web/Home: fixup suggestions

+12 -3
+12 -3
web/src/pages/LoggedOutHome.tsx
··· 1 - import { useState } from "react"; 1 + import { useMemo, useState } from "react"; 2 2 import { useDiscovery } from "../hooks/useDiscovery"; 3 3 import { usePageTitle } from "../hooks/usePageTitle"; 4 - import DialBBS from "../components/DialBBS"; 4 + import DialBBS, { type Suggestion } from "../components/DialBBS"; 5 5 import DiscoveryList from "../components/DiscoveryList"; 6 6 7 7 export default function LoggedOutHome() { 8 8 const discovered = useDiscovery(); 9 + const suggestions = useMemo<Suggestion[]>( 10 + () => 11 + discovered.map((entry) => ({ 12 + to: `/bbs/${entry.handle}`, 13 + name: entry.name, 14 + handle: entry.handle, 15 + })), 16 + [discovered], 17 + ); 9 18 const [tab, setTab] = useState<"pip" | "uv" | "brew" | "telnet">("pip"); 10 19 usePageTitle("atbbs"); 11 20 ··· 47 56 <div className="border-t border-neutral-800 py-4"> 48 57 <h2 className="text-neutral-300 mb-4">Dial a BBS</h2> 49 58 <div className="mb-6"> 50 - <DialBBS discovered={discovered} /> 59 + <DialBBS discovered={discovered} suggestions={suggestions} /> 51 60 </div> 52 61 <DiscoveryList discovered={discovered} /> 53 62 </div>