style: auto-fix lint and format

This commit is contained in:
ajnart authored and github-actions[bot] committed 2026-06-15 14:09:55 +00:00
1 parent 6189daf6a4
commit 583b1d2935
1 file changed
+29 -34
+29 -34
View File
@@ -49,40 +49,35 @@ type BeszelAreaChartProps = Omit<AreaChartProps, "dataKey" | "curveType" | "with
yAxisDomain?: [number, string];
};
export const BeszelAreaChart = memo(({
yAxisFormatter,
yAxisDomain,
yAxisProps,
style,
type = "default",
...props
}: BeszelAreaChartProps) => (
<AreaChart
dataKey="time"
curveType="monotone"
withGradient={false}
connectNulls
withDots={true}
type={type}
strokeWidth={1}
fillOpacity={0.2}
activeDotProps={activeDot}
dotProps={hiddenDot}
withXAxis
withYAxis
w="100%"
style={{ minWidth: 0, minHeight: 0, ...style }}
yAxisProps={{
...yAxisBase,
width: 32,
tickMargin: 2,
...(yAxisDomain ? { domain: yAxisDomain } : {}),
tickFormatter: yAxisFormatter,
...yAxisProps,
}}
{...props}
/>
));
export const BeszelAreaChart = memo(
({ yAxisFormatter, yAxisDomain, yAxisProps, style, type = "default", ...props }: BeszelAreaChartProps) => (
<AreaChart
dataKey="time"
curveType="monotone"
withGradient={false}
connectNulls
withDots={true}
type={type}
strokeWidth={1}
fillOpacity={0.2}
activeDotProps={activeDot}
dotProps={hiddenDot}
withXAxis
withYAxis
w="100%"
style={{ minWidth: 0, minHeight: 0, ...style }}
yAxisProps={{
...yAxisBase,
width: 32,
tickMargin: 2,
...(yAxisDomain ? { domain: yAxisDomain } : {}),
tickFormatter: yAxisFormatter,
...yAxisProps,
}}
{...props}
/>
),
);
export const useSystemChartData = (
systemStats: BeszelSystemStatsRecord[] | undefined,