From 788fd9b7583b4ec8d8c6301fbd312d8f5724c01a Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 14 Jun 2023 00:55:02 +0100 Subject: [PATCH] feat: anonymous commenting tip --- src/components/common/CommentInput.tsx | 13 ++++++++++++- src/lib/i18n/locales/zh/common.json | 5 +++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/common/CommentInput.tsx b/src/components/common/CommentInput.tsx index 8fbceab6..9b6808dc 100644 --- a/src/components/common/CommentInput.tsx +++ b/src/components/common/CommentInput.tsx @@ -19,6 +19,7 @@ import { import { CodeMirrorEditor } from "../ui/CodeMirror" import { Input } from "../ui/Input" +import { Tooltip } from "../ui/Tooltip" import { EmojiPicker } from "./EmojiPicker" export const CommentInput = ({ @@ -252,8 +253,18 @@ export const CommentInput = ({ checked={anonymous} onChange={(e) => setAnonymous(e.target.checked)} /> -