Feed feedback and fixes #231
@ -25,7 +25,11 @@ import { useComments } from 'hooks/useComments'
|
|||||||
import { CommentContent } from './CommentContent'
|
import { CommentContent } from './CommentContent'
|
||||||
import { Dots } from 'components/Spinner'
|
import { Dots } from 'components/Spinner'
|
||||||
|
|
||||||
export const CommentsPopup = () => {
|
interface CommentsPopupProps {
|
||||||
|
title: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export const CommentsPopup = ({ title }: CommentsPopupProps) => {
|
||||||
const { naddr } = useParams()
|
const { naddr } = useParams()
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const { ndk } = useNDKContext()
|
const { ndk } = useNDKContext()
|
||||||
@ -119,7 +123,7 @@ export const CommentsPopup = () => {
|
|||||||
<div className='popUpMainCard'>
|
<div className='popUpMainCard'>
|
||||||
<div className='popUpMainCardTop'>
|
<div className='popUpMainCardTop'>
|
||||||
<div className='popUpMainCardTopInfo'>
|
<div className='popUpMainCardTopInfo'>
|
||||||
<h3>Comment replies</h3>
|
<h3>{title}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -109,7 +109,7 @@ export const routerWithNdkContext = (context: NDKContextType) =>
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: ':nevent',
|
path: ':nevent',
|
||||||
element: <CommentsPopup />,
|
element: <CommentsPopup title='Comment replies' />,
|
||||||
loader: commentsLoader(context)
|
loader: commentsLoader(context)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -136,7 +136,7 @@ export const routerWithNdkContext = (context: NDKContextType) =>
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: ':nevent',
|
path: ':nevent',
|
||||||
element: <CommentsPopup />,
|
element: <CommentsPopup title='Comment replies' />,
|
||||||
loader: commentsLoader(context)
|
loader: commentsLoader(context)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -209,7 +209,7 @@ export const routerWithNdkContext = (context: NDKContextType) =>
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: ':note',
|
path: ':note',
|
||||||
element: <CommentsPopup />,
|
element: <CommentsPopup title='Note and replies' />,
|
||||||
loader: commentsLoader(context)
|
loader: commentsLoader(context)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user