diff --git a/src/components/ReplyNote/index.tsx b/src/components/ReplyNote/index.tsx index dfa6bfd3..e642a9ca 100644 --- a/src/components/ReplyNote/index.tsx +++ b/src/components/ReplyNote/index.tsx @@ -1,3 +1,5 @@ +import { useSecondaryPage } from '@/PageManager' +import { toNote } from '@/lib/link' import { Event } from 'nostr-tools' import { useState } from 'react' import { useTranslation } from 'react-i18next' @@ -21,11 +23,13 @@ export default function ReplyNote({ highlight?: boolean }) { const { t } = useTranslation() + const { push } = useSecondaryPage() const [isPostDialogOpen, setIsPostDialogOpen] = useState(false) return (
push(toNote(event.id))} >
@@ -35,7 +39,13 @@ export default function ReplyNote({ skeletonClassName="h-3" /> {parentEvent && ( - onClickParent(parentEvent.id)} /> + { + e.stopPropagation() + onClickParent(parentEvent.id) + }} + /> )}
@@ -44,7 +54,10 @@ export default function ReplyNote({
setIsPostDialogOpen(true)} + onClick={(e) => { + e.stopPropagation() + setIsPostDialogOpen(true) + }} > {t('reply')}