diff --git a/src/components/NoteStats/LikeButton.tsx b/src/components/NoteStats/LikeButton.tsx
index 0b8798fd..3947761d 100644
--- a/src/components/NoteStats/LikeButton.tsx
+++ b/src/components/NoteStats/LikeButton.tsx
@@ -11,11 +11,9 @@ import { formatCount } from './utils'
export default function LikeButton({
event,
- variant = 'normal',
canFetch = false
}: {
event: Event
- variant?: 'normal' | 'reply'
canFetch?: boolean
}) {
const { t } = useTranslation()
@@ -70,8 +68,7 @@ export default function LikeButton({
return (
>
diff --git a/src/components/NoteStats/index.tsx b/src/components/NoteStats/index.tsx
index 09ed561f..3bab1d6e 100644
--- a/src/components/NoteStats/index.tsx
+++ b/src/components/NoteStats/index.tsx
@@ -8,16 +8,18 @@ import RepostButton from './RepostButton'
export default function NoteStats({
event,
className,
- fetchIfNotExisting = false
+ fetchIfNotExisting = false,
+ variant = 'note'
}: {
event: Event
className?: string
fetchIfNotExisting?: boolean
+ variant?: 'note' | 'reply'
}) {
return (
-
e.stopPropagation()}>
-
+
e.stopPropagation()}>
+
diff --git a/src/components/ReplyNote/index.tsx b/src/components/ReplyNote/index.tsx
index 5a3c6cf7..9f34ebdd 100644
--- a/src/components/ReplyNote/index.tsx
+++ b/src/components/ReplyNote/index.tsx
@@ -1,14 +1,8 @@
-import { useSecondaryPage } from '@/PageManager'
-import { toNote } from '@/lib/link'
-import { useNostr } from '@/providers/NostrProvider'
import { Event } from 'nostr-tools'
-import { useState } from 'react'
-import { useTranslation } from 'react-i18next'
import Content from '../Content'
import { FormattedTimestamp } from '../FormattedTimestamp'
-import LikeButton from '../NoteStats/LikeButton'
+import NoteStats from '../NoteStats'
import ParentNotePreview from '../ParentNotePreview'
-import PostEditor from '../PostEditor'
import UserAvatar from '../UserAvatar'
import Username from '../Username'
@@ -23,25 +17,25 @@ export default function ReplyNote({
onClickParent?: (eventId: string) => void
highlight?: boolean
}) {
- const { t } = useTranslation()
- const { checkLogin } = useNostr()
- const { push } = useSecondaryPage()
- const [isPostDialogOpen, setIsPostDialogOpen] = useState(false)
-
return (
push(toNote(event.id))}
+ className={`flex space-x-2 items-start rounded-lg p-2 transition-colors duration-500 ${highlight ? 'bg-highlight/50' : ''}`}
>
-
-
+
+
{parentEvent && (
{
e.stopPropagation()
@@ -49,24 +43,9 @@ export default function ReplyNote({
}}
/>
)}
-
-
-
-
-
-
{
- e.stopPropagation()
- checkLogin(() => setIsPostDialogOpen(true))
- }}
- >
- {t('reply')}
-
-
+
+
-
-
)
}