Skip to content

Commit 4b0d1bb

Browse files
committed
feat: hint for friendly comments
1 parent db0eb45 commit 4b0d1bb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/components/viewer/comment/CommentArea.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,7 @@ const CommentActions = ({
297297
</p>
298298
</Alert>
299299
</div>
300-
{replyTo === comment && (
301-
<CommentForm
302-
inputAutoFocus
303-
className="mt-4"
304-
placeholder={`回复 @${comment.uploader}:`}
305-
/>
306-
)}
300+
{replyTo === comment && <CommentForm inputAutoFocus className="mt-4" />}
307301
</div>
308302
)
309303
}

src/components/viewer/comment/CommentForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface CommentFormProps {
2121
export const CommentForm = ({
2222
className,
2323
primary,
24-
placeholder = '发表一条评论吧',
24+
placeholder = '发一条友善的评论吧',
2525
inputAutoFocus,
2626
}: CommentFormProps) => {
2727
const { operationId, replyTo, reload } = useContext(CommentAreaContext)

0 commit comments

Comments
 (0)