Skip to content

Commit 0b10c6b

Browse files
improvement(dashboards): mark empty-state chart points as const
Claude-Session: https://claude.ai/code/session_01J7A6CWpREr1jiPAdWyTQbA
1 parent e6a282c commit 0b10c6b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-empty-state/dashboard-empty-state.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const CORNER_FADE =
2121

2222
type Point = readonly [number, number]
2323

24-
const SPARKLINE: Point[] = [
24+
const SPARKLINE = [
2525
[52, 62],
2626
[66, 56],
2727
[80, 59],
@@ -30,9 +30,9 @@ const SPARKLINE: Point[] = [
3030
[122, 44],
3131
[136, 47],
3232
[150, 40],
33-
]
33+
] as const
3434

35-
const TREND: Point[] = [
35+
const TREND = [
3636
[52, 140],
3737
[82, 128],
3838
[112, 133],
@@ -43,7 +43,7 @@ const TREND: Point[] = [
4343
[262, 86],
4444
[292, 92],
4545
[322, 76],
46-
]
46+
] as const
4747

4848
const LEGEND = [
4949
{ y: 33, width: 34, fill: INK.strong },
@@ -53,7 +53,7 @@ const LEGEND = [
5353

5454
const DONUT = { cx: 202, cy: 44, r: 16, strokeWidth: 6 } as const
5555

56-
function toPath(points: Point[]): string {
56+
function toPath(points: readonly Point[]): string {
5757
return points.map(([x, y], i) => `${i === 0 ? 'M' : 'L'} ${x} ${y}`).join(' ')
5858
}
5959

0 commit comments

Comments
 (0)