remove reaction (kind 7) and fix onclick event

This commit is contained in:
Ren Amamiya
2023-05-14 18:20:27 +07:00
parent 409a625dcc
commit b2199e81b8
7 changed files with 20 additions and 12 deletions

View File

@@ -72,7 +72,11 @@ export const RootNote = memo(function RootNote({
const contentFallback = noteParser(parseFallback);
return (
<div onKeyDown={(e) => openNote(e)} className="flex flex-col px-3">
<div
onClick={(e) => openNote(e)}
onKeyDown={(e) => openNote(e)}
className="flex flex-col px-3"
>
<NoteDefaultUser
pubkey={parseFallback.pubkey}
time={parseFallback.created_at}
@@ -89,7 +93,11 @@ export const RootNote = memo(function RootNote({
}
return (
<div onKeyDown={(e) => openNote(e)} className="flex flex-col px-3">
<div
onClick={(e) => openNote(e)}
onKeyDown={(e) => openNote(e)}
className="flex flex-col px-3"
>
{data ? (
<>
<NoteDefaultUser pubkey={data.pubkey} time={data.created_at} />