You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2023/12/13 08:48:18 UTC
(incubator-answer) 01/01: feat: button optimization
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch fix/ui-restrict-answer
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 405f3e2a7240691b3f3c38cb51d148aa9143428b
Author: shuai <li...@sifou.com>
AuthorDate: Wed Dec 13 16:48:05 2023 +0800
feat: button optimization
---
ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx
index 10fb4779..9bc8be44 100644
--- a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx
@@ -313,8 +313,10 @@ const Index: FC<Props> = ({ visible = false, data, callback }) => {
{data.answered && !showEditor ? (
// the 0th answer is the oldest one
- <Link to={`/posts/${data.qid}/${data.first_answer_id}/edit`}>
- <Button>{t('edit_answer')}</Button>
+ <Link
+ to={`/posts/${data.qid}/${data.first_answer_id}/edit`}
+ className="btn btn-primary">
+ {t('edit_answer')}
</Link>
) : (
<Button onClick={clickBtn}>{t('btn_name')}</Button>