fix: latest files
This commit is contained in:
parent
20bd1b7887
commit
5a38ea284a
@ -4,7 +4,7 @@ import { useRequestBuilder } from "@snort/system-react";
|
|||||||
import { TorrentList } from "./torrent-list";
|
import { TorrentList } from "./torrent-list";
|
||||||
|
|
||||||
export function LatestTorrents({ author }: { author?: string }) {
|
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);
|
sub.withFilter().kinds([TorrentKind]).authors(author ? [author] : undefined).limit(100);
|
||||||
|
|
||||||
const latest = useRequestBuilder(NoteCollection, sub);
|
const latest = useRequestBuilder(NoteCollection, sub);
|
||||||
|
@ -18,7 +18,8 @@ export function Layout() {
|
|||||||
return (
|
return (
|
||||||
<div className="container mx-auto">
|
<div className="container mx-auto">
|
||||||
<header className="flex justify-between items-center p-1">
|
<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>
|
<h1 className="font-bold uppercase">dtan.xyz</h1>
|
||||||
</Link>
|
</Link>
|
||||||
{login ? <LoggedInHeader login={login} /> : <Button onClick={DoLogin}>Login</Button>}
|
{login ? <LoggedInHeader login={login} /> : <Button onClick={DoLogin}>Login</Button>}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user