diff --git a/src/components/common/Comment.tsx b/src/components/common/Comment.tsx index bfcb1230..a497c5ea 100644 --- a/src/components/common/Comment.tsx +++ b/src/components/common/Comment.tsx @@ -27,6 +27,7 @@ export const Comment: React.FC<{ originalId={page?.id} comment={comment} key={comment.transactionHash} + depth={0} /> ))} diff --git a/src/components/common/CommentItem.tsx b/src/components/common/CommentItem.tsx index b1414850..7df0c910 100644 --- a/src/components/common/CommentItem.tsx +++ b/src/components/common/CommentItem.tsx @@ -20,15 +20,15 @@ export const CommentItem: React.FC<{ comment: NoteEntity & { character?: CharacterEntity | null } - isSub?: boolean originalId?: string -}> = ({ comment, isSub, originalId }) => { + depth: number +}> = ({ comment, originalId, depth }) => { const [replyOpen, setReplyOpen] = useState(false) return (