fix: latest files

This commit is contained in:
Kieran 2023-11-27 17:10:46 +00:00
parent 20bd1b7887
commit 5a38ea284a
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { useRequestBuilder } from "@snort/system-react";
import { TorrentList } from "./torrent-list";
export function LatestTorrents({ author }: { author?: string }) {
const sub = new RequestBuilder("torrents:latest");
const sub = new RequestBuilder(`torrents:latest:${author}`);
sub.withFilter().kinds([TorrentKind]).authors(author ? [author] : undefined).limit(100);
const latest = useRequestBuilder(NoteCollection, sub);

View File

@ -18,7 +18,8 @@ export function Layout() {
return (
<div className="container mx-auto">
<header className="flex justify-between items-center p-1">
<Link to={"/"}>
<Link to={"/"} className="flex gap-1 items-center">
<img src="/logo_256.jpg" className="rounded-full" height={40} width={40} />
<h1 className="font-bold uppercase">dtan.xyz</h1>
</Link>
{login ? <LoggedInHeader login={login} /> : <Button onClick={DoLogin}>Login</Button>}