Skip to content

Commit 293b124

Browse files
chore: update slot progression chart start line color
1 parent eee15f7 commit 293b124

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const computeUnitsColor = "#D19DFF";
8989
export const feesColor = "#4CCCE6";
9090
export const tipsColor = "#1FD8A4";
9191
export const elapsedTimeColor = "#6A6A6E";
92-
export const revenueStartLineColor = "#FFFFFF";
92+
export const startLineColor = secondaryTextColor;
9393

9494
// transaction bars
9595
export const successToggleColor = "#30A46C";

src/features/Overview/SlotPerformance/ComputeUnitsCard/CuChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ export default function CuChart({
364364
],
365365
legend: { show: false },
366366
plugins: [
367+
startLinePlugin(),
367368
cuRefAreaPlugin({
368369
slotTransactionsRef,
369370
maxComputeUnitsRef,
370371
bankTileCountRef,
371372
}),
372-
startLinePlugin(),
373373
timeScaleDragPlugin(),
374374
wheelZoomPlugin({ factor: 0.75 }),
375375
cuTooltipPlugin(setTooltipData),

src/features/Overview/SlotPerformance/ComputeUnitsCard/CuChartInfoIcon.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { InfoCircledIcon } from "@radix-ui/react-icons";
22
import { Tooltip } from "@radix-ui/themes";
33
import styles from "./cuChartIcon.module.css";
4+
import { startLineColor } from "../../../../colors";
45

56
export const infoIconId = "cu-chart-info-icon";
67

@@ -10,7 +11,11 @@ export default function CuChartInfoIcon() {
1011
return (
1112
<div id={infoIconId} className={styles.iconContainer}>
1213
<Tooltip content="The 'revenue' scheduler strategy waits until 50ms remain in the block to schedule non-bundle user transactions">
13-
<InfoCircledIcon width={iconSize} height={iconSize} />
14+
<InfoCircledIcon
15+
width={iconSize}
16+
height={iconSize}
17+
color={startLineColor}
18+
/>
1419
</Tooltip>
1520
</div>
1621
);

src/features/Overview/SlotPerformance/ComputeUnitsCard/startLinePlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import uPlot from "uplot";
22

33
import { xScaleKey } from "./consts";
4-
import { revenueStartLineColor } from "../../../../colors";
4+
import { startLineColor } from "../../../../colors";
55
import { getDefaultStore } from "jotai";
66
import { ScheduleStrategyEnum } from "../../../../api/entities";
77
import { scheduleStrategyAtom } from "../../../../api/atoms";
@@ -50,7 +50,7 @@ export function startLinePlugin(): uPlot.Plugin {
5050

5151
ctx.beginPath();
5252

53-
ctx.strokeStyle = revenueStartLineColor;
53+
ctx.strokeStyle = startLineColor;
5454
ctx.lineWidth = 5 / uPlot.pxRatio;
5555
ctx.setLineDash([5, 5]);
5656

0 commit comments

Comments
 (0)