Skip to content

Commit

Permalink
Fix/UI restrict answer (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai authored Dec 13, 2023
1 parent 95cdace commit a637efa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a637efa

Please sign in to comment.