From 904946f0af1e40fc21555d083e60b76d44364b3b Mon Sep 17 00:00:00 2001 From: shuai Date: Fri, 30 Sep 2022 14:21:50 +0800 Subject: [PATCH] fix: #881 --- ui/src/i18n/locales/en.json | 3 ++- ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.json index bbbb04ad..8e638ddc 100644 --- a/ui/src/i18n/locales/en.json +++ b/ui/src/i18n/locales/en.json @@ -602,7 +602,8 @@ "write_answer": { "title": "Your Answer", "btn_name": "Post your answer", - "confirm_info": "you have answered, confirm to continue answer", + "tips": "Tips", + "confirm_info": "

Are you sure you want to add another answer?

You could use the edit link to refine and improve your existing answer, instead.

", "empty": "Answer cannot be empty." } }, diff --git a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx index 1f6934e6..eb423d36 100644 --- a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx +++ b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx @@ -62,6 +62,7 @@ const Index: FC = ({ visible = false, data, callback }) => { const clickBtn = () => { if (data?.answered && !showEditor) { Modal.confirm({ + title: t('tips'), content: t('confirm_info'), onConfirm: () => { setShowEditor(true);