Skip to content

Commit 0bb1f7e

Browse files
committed
Fix being able to comment
1 parent 79967fe commit 0bb1f7e

2 files changed

Lines changed: 3 additions & 105 deletions

File tree

src/components/comments/CommentSection.tsx

Lines changed: 0 additions & 102 deletions
This file was deleted.

src/components/notes/NoteCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ export default function NoteCard({ note, onEdit, onDelete }: NoteCardProps) {
9696
>
9797
<MessageCircleIcon className="h-3.5 w-3.5 mr-1" />
9898
<span>Comments ({comments.length})</span>
99-
{comments.length > 0 && (
99+
{
100100
isCommentsCollapsed ?
101101
<ChevronDownIcon className="h-3.5 w-3.5 ml-1" /> :
102102
<ChevronUpIcon className="h-3.5 w-3.5 ml-1" />
103-
)}
103+
}
104104
</div>
105105

106106
{comments.length > 0 && comments.some(c => c.isPinned) && (
@@ -126,7 +126,7 @@ export default function NoteCard({ note, onEdit, onDelete }: NoteCardProps) {
126126
)}
127127
</div>
128128

129-
{!isCommentsCollapsed && comments.length > 0 && (
129+
{!isCommentsCollapsed && (
130130
<div className="border-t border-border">
131131
<div className="px-4 py-4">
132132
{comments.filter(c => !c.isPinned).length > 0 ? (

0 commit comments

Comments
 (0)