mirror of
https://git.v0l.io/Kieran/dtan.git
synced 2025-01-18 04:41:32 +00:00
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";
|
||||
|
||||
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);
|
||||
|
@ -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>}
|
||||
|
Loading…
Reference in New Issue
Block a user