updated note metadata

This commit is contained in:
Ren Amamiya
2023-04-17 10:42:15 +07:00
parent a734d0ce9b
commit 0786ad6915
9 changed files with 60 additions and 45 deletions

View File

@@ -9,9 +9,9 @@ import useLocalStorage from '@rehooks/local-storage';
import { MultiBubble, OpenNewWindow } from 'iconoir-react';
import { useRouter } from 'next/navigation';
import { getEventHash, signEvent } from 'nostr-tools';
import { memo, useContext, useState } from 'react';
import { useContext, useState } from 'react';
export const NoteComment = memo(function NoteComment({
export const NoteComment = ({
count,
eventID,
eventPubkey,
@@ -23,7 +23,7 @@ export const NoteComment = memo(function NoteComment({
eventPubkey: string;
eventTime: number;
eventContent: any;
}) {
}) => {
const router = useRouter();
const [pool, relays]: any = useContext(RelayContext);
@@ -132,4 +132,4 @@ export const NoteComment = memo(function NoteComment({
</Dialog.Portal>
</Dialog.Root>
);
});
};