This commit is contained in:
shuai 2022-10-09 10:52:23 +08:00
parent 1a5be1c5db
commit d22c427483
1 changed files with 11 additions and 6 deletions

View File

@ -153,12 +153,17 @@ const QuestionList: FC<Props> = ({ source }) => {
<Icon name="hand-thumbs-up-fill" /> <Icon name="hand-thumbs-up-fill" />
<em className="fst-normal mx-1">{li.vote_count}</em> <em className="fst-normal mx-1">{li.vote_count}</em>
</span> </span>
<span className="ms-3"> <span
{li.accepted_answer_id >= 1 ? ( className={`ms-3 ${
<Icon name="check-circle-fill" className="text-success" /> li.accepted_answer_id >= 1 ? 'text-success' : ''
) : ( }`}>
<Icon name="chat-square-text-fill" /> <Icon
)} name={
li.accepted_answer_id >= 1
? 'check-circle-fill'
: 'chat-square-text-fill'
}
/>
<em className="fst-normal mx-1">{li.answer_count}</em> <em className="fst-normal mx-1">{li.answer_count}</em>
</span> </span>
<span className="summary-stat ms-3"> <span className="summary-stat ms-3">