diff --git a/src/components/like-button.tsx b/src/components/like-button.tsx index 93a8ac7..0bdf6f9 100644 --- a/src/components/like-button.tsx +++ b/src/components/like-button.tsx @@ -20,6 +20,7 @@ interface LikeButtonProps { subjectCid: string initialCount: number size?: 'sm' | 'md' + disabled?: boolean className?: string } @@ -28,6 +29,7 @@ export function LikeButton({ subjectCid, initialCount, size = 'md', + disabled = false, className, }: LikeButtonProps) { const { user, isAuthenticated, getAccessToken } = useAuth() @@ -121,7 +123,7 @@ export function LikeButton({ type="button" aria-pressed={liked} aria-label={`${formatCompactNumber(count)} reactions`} - disabled={!isAuthenticated} + disabled={disabled || !isAuthenticated} onClick={handleToggle} className={cn( 'inline-flex items-center gap-1.5 transition-colors', diff --git a/src/components/reply-branch.tsx b/src/components/reply-branch.tsx index 0e6ef91..dc1e237 100644 --- a/src/components/reply-branch.tsx +++ b/src/components/reply-branch.tsx @@ -160,6 +160,7 @@ export function ReplyBranch({ onReply={onReply} canEdit={currentUserDid ? node.reply.authorDid === currentUserDid : false} canDelete={currentUserDid ? node.reply.authorDid === currentUserDid : false} + isOwnContent={currentUserDid ? node.reply.authorDid === currentUserDid : false} onDelete={onDeleteReply} /> diff --git a/src/components/reply-card.tsx b/src/components/reply-card.tsx index 7d7a033..7813fe9 100644 --- a/src/components/reply-card.tsx +++ b/src/components/reply-card.tsx @@ -43,6 +43,7 @@ interface ReplyCardProps { onDelete?: () => void canReport?: boolean onReport?: (report: ReportSubmission) => void + isOwnContent?: boolean selfLabels?: string[] className?: string } @@ -58,6 +59,7 @@ export function ReplyCard({ onDelete, canReport, onReport, + isOwnContent, selfLabels, className, }: ReplyCardProps) { @@ -256,13 +258,18 @@ export function ReplyCard({ {/* Footer */}
{reactions && onReactionToggle && ( - + )}