diff --git a/ui/src/components/Metric.tsx b/ui/src/components/Metric.tsx index fcb4e51..f791e60 100644 --- a/ui/src/components/Metric.tsx +++ b/ui/src/components/Metric.tsx @@ -1,3 +1,4 @@ +/* eslint-disable react-refresh/only-export-components */ import { ComponentProps } from "react"; import { cva, cx } from "cva"; @@ -28,7 +29,12 @@ interface MetricProps { badgeTheme?: ComponentProps["badgeTheme"]; } -/* eslint-disable-next-line */ +/** + * Creates a chart array from a metrics map and a metric name. + * + * @param metrics - Expected to be ordered from oldest to newest. + * @param metricName - Name of the metric to create a chart array for. + */ export function createChartArray( metrics: Map, metricName: K,