refactor publish event

This commit is contained in:
2023-11-14 15:15:13 +07:00
parent fee4ad7b98
commit dc5b4f8ac1
22 changed files with 143 additions and 191 deletions

View File

@@ -68,9 +68,9 @@ export function ThreadWidget({ widget }: { widget: Widget }) {
<div className="flex flex-col rounded-xl bg-neutral-50 dark:bg-neutral-950">
<User pubkey={data.pubkey} time={data.created_at} variant="thread" />
{renderKind(data)}
<NoteActions id={data.id} pubkey={data.pubkey} />
<NoteActions event={data} />
</div>
<NoteReplyForm eventId={widget.content} />
<NoteReplyForm rootEvent={data} />
<ReplyList eventId={data.id} />
</>
)}