Skip to content

Commit

Permalink
show partner amount in CooldownDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 6, 2024
1 parent 43af546 commit 6b51fe5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,26 @@ const CooldownDetails = ({
/>
</TableSegmentContainer>
</tr>

{heal.partnerAmount >= 0 && (
<tr>
<td>Partner healing</td>
<NumericColumn>{formatNumber(heal.partnerAmount)}</NumericColumn>

<TableSegmentContainer>
<MitigationTooltipSegment
color="#4ec04e"
maxWidth={100}
width={Math.min(1, heal.partnerAmount / mit.amount)}
/>
<MitigationTooltipSegment
color="rgba(255, 255, 255, 0.05)"
maxWidth={100}
width={Math.max(0, 1 - heal.partnerAmount / mit.amount)}
/>
</TableSegmentContainer>
</tr>
)}
</>
) : (
<>
Expand Down

0 comments on commit 6b51fe5

Please sign in to comment.