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/Layout: remove unused location state

+1 -7
+1 -7
web/src/components/Layout.tsx
··· 1 1 import { 2 2 Link, 3 3 Outlet, 4 - useLocation, 5 4 useNavigate, 6 5 useNavigation, 7 6 } from "react-router-dom"; ··· 12 11 13 12 export default function Layout() { 14 13 const { user, logout } = useAuth(); 15 - const location = useLocation(); 16 14 const navigation = useNavigation(); 17 15 const navigate = useNavigate(); 18 16 const isLoading = navigation.state === "loading"; ··· 62 60 ) : ( 63 61 <Link 64 62 to="/login" 65 - state={{ from: location.pathname }} 66 63 className="text-neutral-500 hover:text-neutral-300" 67 64 > 68 65 log in ··· 70 67 )} 71 68 </div> 72 69 {/* Mobile: hamburger menu */} 73 - <MobileMenu user={user} location={location} onLogout={onLogout} /> 70 + <MobileMenu user={user} onLogout={onLogout} /> 74 71 </div> 75 72 </header> 76 73 <main className="max-w-2xl mx-auto px-4 py-8 flex-1 w-full"> ··· 110 107 111 108 function MobileMenu({ 112 109 user, 113 - location, 114 110 onLogout, 115 111 }: { 116 112 user: ReturnType<typeof useAuth>["user"]; 117 - location: ReturnType<typeof useLocation>; 118 113 onLogout: () => void; 119 114 }) { 120 115 const [open, setOpen] = useState(false); ··· 154 149 ) : ( 155 150 <Link 156 151 to="/login" 157 - state={{ from: location.pathname }} 158 152 onClick={() => setOpen(false)} 159 153 className="text-neutral-300 hover:text-neutral-200" 160 154 >