fix(web): highlight shared current peak tier
This commit is contained in:
1 parent
b2d438785b
commit
edfb960e97
1 file changed
+8
-2
@@ -530,13 +530,19 @@ export default function TierHistoryChart({
|
|||||||
r={3}
|
r={3}
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
className="text-primary"
|
className={
|
||||||
|
isSamePoint(summary.peak, summary.last)
|
||||||
|
? "text-amber-400"
|
||||||
|
: "text-primary"
|
||||||
|
}
|
||||||
label={{
|
label={{
|
||||||
value: formatTierCompactLabel(summary.last),
|
value: formatTierCompactLabel(summary.last),
|
||||||
position: "top",
|
position: "top",
|
||||||
fill: "currentColor",
|
fill: "currentColor",
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
className: "text-primary",
|
className: isSamePoint(summary.peak, summary.last)
|
||||||
|
? "text-amber-400"
|
||||||
|
: "text-primary",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in new issue
Block a user