fix: event listener

This commit is contained in:
Shusui MOYATANI
2023-03-26 11:41:05 +09:00
parent 39775d0122
commit ed0d9f57ea
2 changed files with 4 additions and 8 deletions

View File

@@ -166,7 +166,7 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
return ( return (
<div <div
class="nostr-textnote flex flex-col" class="nostr-textnote flex cursor-pointer flex-col"
onClick={() => { onClick={() => {
columnContext?.setColumnContent({ columnContext?.setColumnContent({
type: 'Replies', type: 'Replies',
@@ -191,7 +191,7 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
<div class="flex justify-between gap-1 text-xs"> <div class="flex justify-between gap-1 text-xs">
<button <button
class="author flex min-w-0 truncate hover:text-blue-500" class="author flex min-w-0 truncate hover:text-blue-500"
onClick={() => { onClick={(ev) => {
ev.stopPropagation(); ev.stopPropagation();
showProfile(event().pubkey); showProfile(event().pubkey);
}} }}
@@ -267,8 +267,8 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
<div class="actions flex w-48 items-center justify-between gap-8 pt-1"> <div class="actions flex w-48 items-center justify-between gap-8 pt-1">
<button <button
class="h-4 w-4 shrink-0 text-zinc-400" class="h-4 w-4 shrink-0 text-zinc-400"
onClick={() => { onClick={(ev) => {
stopPropagation(); ev.stopPropagation();
setShowReplyForm((current) => !current); setShowReplyForm((current) => !current);
}} }}
> >

View File

@@ -1,4 +0,0 @@
const filter = {
kinds: [1],
'#e': [rootEventId, currentEventId],
};