mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
@ -96,15 +96,17 @@ export default function ResumeCommentListItem({
|
|||||||
<div className="flex flex-row space-x-1 pt-1 align-middle">
|
<div className="flex flex-row space-x-1 pt-1 align-middle">
|
||||||
<ResumeCommentVoteButtons commentId={comment.id} userId={userId} />
|
<ResumeCommentVoteButtons commentId={comment.id} userId={userId} />
|
||||||
|
|
||||||
{/* Action buttons; only present when not editing/replying */}
|
{/* Action buttons; only present for authenticated user when not editing/replying */}
|
||||||
{isCommentOwner && !isEditingComment && !isReplyingComment && (
|
{userId && !isEditingComment && !isReplyingComment && (
|
||||||
<>
|
<>
|
||||||
<button
|
{isCommentOwner && (
|
||||||
className="px-1 text-xs text-indigo-800 hover:text-indigo-400"
|
<button
|
||||||
type="button"
|
className="px-1 text-xs text-indigo-800 hover:text-indigo-400"
|
||||||
onClick={() => setIsEditingComment(true)}>
|
type="button"
|
||||||
Edit
|
onClick={() => setIsEditingComment(true)}>
|
||||||
</button>
|
Edit
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
{!comment.parentId && (
|
{!comment.parentId && (
|
||||||
<button
|
<button
|
||||||
|
Reference in New Issue
Block a user