Skip to content

Commit

Permalink
Merge pull request #451 from decert-me/hotfix-447
Browse files Browse the repository at this point in the history
fix: claim-page annotation-list
  • Loading branch information
0xdwong authored Jul 29, 2024
2 parents d8c904d + cf89f2d commit 6749780
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/views/Claim/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,23 +181,26 @@ export default function ClaimInfo({answerInfo, detail}) {
}
</div>
</div>
<div className="annotation">
<p className="annotation-title">批注</p>
<div className="annotation-list">
{
detail.answer.map((item, index) => (
item?.type === "open_quest" &&
<div key={index} className="annotation-item" onClick={() => navigateTo(`/challenge/${detail.uuid}?${index+1}`)}>
<div className="left">
<p>题目#{index+1}</p>
<p>{item.annotation}</p>
{
detail.answer.filter(e => e?.type === "open_quest").length !== 0 &&
<div className="annotation">
<p className="annotation-title">批注</p>
<div className="annotation-list">
{
detail.answer.map((item, index) => (
item?.type === "open_quest" &&
<div key={index} className="annotation-item" onClick={() => navigateTo(`/challenge/${detail.uuid}?${index+1}`)}>
<div className="left">
<p>题目#{index+1}</p>
<p>{item.annotation}</p>
</div>
<p>查看</p>
</div>
<p>查看</p>
</div>
))
}
))
}
</div>
</div>
</div>
}
{
isMobile &&
<div className="mr">
Expand Down

0 comments on commit 6749780

Please sign in to comment.