Skip to content

Let's use AI to Earn!

scc

bulaienaofutuojiesenzhangc188aa6a487c
diff --git a/src/app/i18n/locales/en/publish.json b/src/app/i18n/locales/en/publish.json
index fd60ed93..2f6cb0ea 100644
--- a/src/app/i18n/locales/en/publish.json
+++ b/src/app/i18n/locales/en/publish.json
@@ -39,7 +39,8 @@
"sourcePlaceholder": "Please specify source, time, location (e.g. from https://www.xxxx.com/yyyy)",
"page": "Page",
"pagePlaceholder": "Select page",
- "privacyStatus": "Privacy",
+ "privacyStatus": "Visibility",
+ "selectPrivacyStatus": "Select visibility",
"public": "Public",
"unlisted": "Unlisted",
"private": "Private",
diff --git a/src/app/i18n/locales/zh-CN/publish.json b/src/app/i18n/locales/zh-CN/publish.json
index 86045557..2867d95d 100644
--- a/src/app/i18n/locales/zh-CN/publish.json
+++ b/src/app/i18n/locales/zh-CN/publish.json
@@ -40,6 +40,7 @@
"page": "页面",
"pagePlaceholder": "请选择页面",
"privacyStatus": "隐私状态",
+ "selectPrivacyStatus": "请选择隐私状态",
"public": "公开",
"unlisted": "不公开",
"private": "私人",
diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsx
index dec50ba1..89338fb0 100644
--- a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsx
+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/YouTubeParams.tsx
@@ -74,19 +74,19 @@ const YouTubeParams = memo(
style={{ marginTop: "10px" }}
>
<div className="platParamsSetting-label">{t("form.privacyStatus")}</div>
- <Radio.Group
+ <Select
value={pubItem.params.option.youtube?.privacyStatus}
options={[
{ value: "public", label: t("form.public") },
{ value: "unlisted", label: t("form.unlisted") },
{ value: "private", label: t("form.private") },
]}
- onChange={(e) => {
+ onChange={(value) => {
const option = pubItem.params.option;
if (!option.youtube) {
option.youtube = {};
}
- option.youtube.privacyStatus = e.target.value;
+ option.youtube.privacyStatus = value;
setOnePubParams(
{
option,
@@ -94,6 +94,8 @@ const YouTubeParams = memo(
pubItem.account.id,
);
}}
+ style={{ width: "100%" }}
+ placeholder="请选择隐私状态"
/>
</div>