From 7ffb90abd2e761e2f971b5b22c0963e70986e1a1 Mon Sep 17 00:00:00 2001 From: ajnart <49837342+ajnart@users.noreply.github.com> Date: Mon, 15 Jun 2026 14:58:56 +0000 Subject: [PATCH] style: auto-fix lint and format --- packages/widgets/src/beszel/_shared/chart.tsx | 82 ++++++++++--------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/packages/widgets/src/beszel/_shared/chart.tsx b/packages/widgets/src/beszel/_shared/chart.tsx index 7db7ccd60..331117c81 100644 --- a/packages/widgets/src/beszel/_shared/chart.tsx +++ b/packages/widgets/src/beszel/_shared/chart.tsx @@ -51,47 +51,49 @@ type BeszelAreaChartProps = Omit { - const mergedYAxis = useMemo( - () => ({ - ...yAxisBase, - width: 48, - tickMargin: 2, - ...(yAxisDomain ? { domain: yAxisDomain } : {}), - tickFormatter: yAxisFormatter, - ...yAxisPropsOverride, - }), - [yAxisFormatter, yAxisDomain, yAxisPropsOverride], - ); +const BeszelAreaChart = memo( + ({ + yAxisFormatter, + yAxisDomain, + yAxisProps: yAxisPropsOverride, + type = "default", + ...props + }: BeszelAreaChartProps) => { + const mergedYAxis = useMemo( + () => ({ + ...yAxisBase, + width: 48, + tickMargin: 2, + ...(yAxisDomain ? { domain: yAxisDomain } : {}), + tickFormatter: yAxisFormatter, + ...yAxisPropsOverride, + }), + [yAxisFormatter, yAxisDomain, yAxisPropsOverride], + ); - return ( - - ); -}); + return ( + + ); + }, +); export const useSystemChartData = ( systemStats: BeszelSystemStatsRecord[] | undefined,