mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 02:56:22 +00:00
feat: 添加点击标签切换隐私状态功能,提升用户交互体验
This commit is contained in:
@ -78,7 +78,7 @@ export function CommentInput(
|
||||
checked={isPrivate}
|
||||
onCheckedChange={checked => setIsPrivate(checked === true)}
|
||||
/>
|
||||
<Label>{t("private")}</Label>
|
||||
<Label onClick={() => setIsPrivate(prev => !prev)}>{t("private")}</Label>
|
||||
</div>
|
||||
<button onClick={handleCommentSubmit} className="px-2 py-1 bg-blue-500 text-white rounded-md hover:bg-blue-600 transition-colors fade-in-up">
|
||||
{isUpdate ? t("update") : t("submit")}
|
||||
|
Reference in New Issue
Block a user