feat: anonymous commenting tip
This commit is contained in:
@@ -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)}
|
||||
/>
|
||||
<label className="text-gray-500 pl-1" htmlFor="anonymous">
|
||||
<label
|
||||
className="text-gray-500 pl-1 inline-flex items-center"
|
||||
htmlFor="anonymous"
|
||||
>
|
||||
{t("Comment Without Login")}
|
||||
<Tooltip
|
||||
label={t(
|
||||
"You'll use an official public account for comments and give up blockchain ownership",
|
||||
)}
|
||||
>
|
||||
<i className="icon-[mingcute--question-line] ml-1" />
|
||||
</Tooltip>
|
||||
</label>
|
||||
</div>
|
||||
{anonymous && (
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
"My xLog": "我的 xLog",
|
||||
"Click to select files": "点击选择文件",
|
||||
"Comment Without Login": "免登录评论",
|
||||
"Name": "名称",
|
||||
"Email": "邮箱"
|
||||
"Name": "昵称",
|
||||
"Email": "电子邮箱",
|
||||
"You'll use an official public account for comments and give up blockchain ownership": "你将使用官方公共账号进行评论并放弃区块链所有权"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user