From bdaaeadba62ef803db0eb6658ab1d8ff57533b40 Mon Sep 17 00:00:00 2001 From: thislight Date: Mon, 4 Nov 2024 17:10:12 +0800 Subject: [PATCH] TootList: accept id in props --- src/timelines/TootList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timelines/TootList.tsx b/src/timelines/TootList.tsx index 6145b75..da3f065 100644 --- a/src/timelines/TootList.tsx +++ b/src/timelines/TootList.tsx @@ -18,6 +18,7 @@ import { findElementActionable } from "./RegularToot"; const TootList: Component<{ ref?: Ref; + id?: string; threads: readonly string[]; onUnknownThread: (id: string) => { value: mastodon.v1.Status }[] | undefined; onChangeToot: (id: string, value: mastodon.v1.Status) => void; @@ -149,7 +150,7 @@ const TootList: Component<{ return

Oops: {String(err)}

; }} > -
+
{(itemId, index) => { const path = props.onUnknownThread(itemId)!;