update note actions component

This commit is contained in:
Ren Amamiya
2023-07-16 14:24:19 +07:00
parent e0a14ce6cf
commit abc53a0d9a
15 changed files with 64 additions and 74 deletions

View File

@@ -24,11 +24,7 @@ export function NoteKind_1({
<div className="w-11 shrink-0" />
<div className="flex-1">
<NoteContent content={content} />
<NoteActions
id={event.event_id}
rootID={event.parent_id}
eventPubkey={event.pubkey}
/>
<NoteActions id={event.event_id} pubkey={event.pubkey} />
</div>
</div>
{!skipMetadata ? (

View File

@@ -27,11 +27,7 @@ export function NoteKind_1063({ event }: { event: LumeEvent }) {
className="h-auto w-full rounded-lg object-cover"
/>
)}
<NoteActions
id={event.event_id}
rootID={event.parent_id}
eventPubkey={event.pubkey}
/>
<NoteActions id={event.event_id} pubkey={event.pubkey} />
</div>
</div>
<NoteMetadata id={event.event_id} />

View File

@@ -43,11 +43,7 @@ export function Repost({ event }: { event: LumeEvent }) {
<div className="w-11 shrink-0" />
<div className="flex-1">
<NoteContent content={data.content} />
<NoteActions
id={event.event_id}
rootID={event.parent_id}
eventPubkey={event.pubkey}
/>
<NoteActions id={event.event_id} pubkey={event.pubkey} />
</div>
</div>
<NoteMetadata id={event.event_id} />

View File

@@ -31,7 +31,7 @@ export function SubNote({ id }: { id: string }) {
<div className="w-11 shrink-0" />
<div className="flex-1">
<NoteContent content={data.content} />
<NoteActions id={data.id} eventPubkey={data.pubkey} />
<NoteActions id={data.event_id} pubkey={data.pubkey} />
</div>
</div>
</div>

View File

@@ -28,11 +28,7 @@ export function NoteThread({
<div className="w-11 shrink-0" />
<div className="flex-1">
<NoteContent content={content} />
<NoteActions
id={event.event_id}
rootID={event.parent_id}
eventPubkey={event.pubkey}
/>
<NoteActions id={event.event_id} pubkey={event.pubkey} />
</div>
</div>
<NoteMetadata id={event.event_id} />

View File

@@ -25,11 +25,7 @@ export function NoteKindUnsupport({ event }: { event: LumeEvent }) {
<p>{event.content.toString()}</p>
</div>
</div>
<NoteActions
id={event.event_id}
rootID={event.parent_id}
eventPubkey={event.pubkey}
/>
<NoteActions id={event.event_id} pubkey={event.pubkey} />
</div>
</div>
<NoteMetadata id={event.event_id} />