Skip to content

Commit

Permalink
feat: hint for friendly comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guansss committed Nov 28, 2023
1 parent db0eb45 commit 4b0d1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/components/viewer/comment/CommentArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,7 @@ const CommentActions = ({
</p>
</Alert>
</div>
{replyTo === comment && (
<CommentForm
inputAutoFocus
className="mt-4"
placeholder={`回复 @${comment.uploader}:`}
/>
)}
{replyTo === comment && <CommentForm inputAutoFocus className="mt-4" />}
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/viewer/comment/CommentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface CommentFormProps {
export const CommentForm = ({
className,
primary,
placeholder = '发表一条评论吧',
placeholder = '发一条友善的评论吧',
inputAutoFocus,
}: CommentFormProps) => {
const { operationId, replyTo, reload } = useContext(CommentAreaContext)
Expand Down

0 comments on commit 4b0d1bb

Please sign in to comment.