From 97f959dfd4a37a9b1e9920f15a533b935b6556ef Mon Sep 17 00:00:00 2001 From: shuai Date: Fri, 30 Sep 2022 12:16:14 +0800 Subject: [PATCH] fix: delete no used text --- ui/src/hooks/useReportModal/index.tsx | 6 +----- ui/src/i18n/locales/en.json | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ui/src/hooks/useReportModal/index.tsx b/ui/src/hooks/useReportModal/index.tsx index 0424cfc4..fe8d4593 100644 --- a/ui/src/hooks/useReportModal/index.tsx +++ b/ui/src/hooks/useReportModal/index.tsx @@ -187,11 +187,7 @@ const useReportModal = (callback?: () => void) => { } value={content.value} isInvalid={content.isInvalid} - placeholder={ - item.content_type === 'text' - ? t('input_placeholder') - : t('textarea_placeholder') - } + placeholder={item.placeholder} onChange={(e) => setContent({ value: e.target.value, diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.json index 8fcaf75d..733eab86 100644 --- a/ui/src/i18n/locales/en.json +++ b/ui/src/i18n/locales/en.json @@ -199,9 +199,7 @@ }, "msg": { "empty": "Please select a reason." - }, - "input_placeholder": "Enter the existing question link", - "textarea_placeholder": "Let us know specifically what you are concerned about" + } }, "tag_modal": { "title": "Create New Tag",