add nip-94 to newsfeed

This commit is contained in:
Ren Amamiya
2023-05-08 12:18:48 +07:00
parent 841e8def88
commit 09380e4fef
15 changed files with 60 additions and 50 deletions

View File

@@ -1,4 +1,5 @@
import { NoteContent } from '@lume/app/note/components/content';
import { Kind1 } from '@lume/app/note/components/kind1';
import { Kind1063 } from '@lume/app/note/components/kind1063';
import NoteMetadata from '@lume/app/note/components/metadata';
import { NoteParent } from '@lume/app/note/components/parent';
import { NoteDefaultUser } from '@lume/app/note/components/user/default';
@@ -25,7 +26,8 @@ export const NoteBase = ({ event }: { event: any }) => {
<div className="flex flex-col">
<NoteDefaultUser pubkey={event.pubkey} time={event.created_at} />
<div className="mt-3 pl-[46px]">
<NoteContent content={content} />
{event.kind === 1 && <Kind1 content={content} />}
{event.kind === 1063 && <Kind1063 metadata={event.tags} />}
<NoteMetadata id={event.event_id} eventPubkey={event.pubkey} />
</div>
</div>