From 6b052c9b170853f38dc07506fec319212fcb239d Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Fri, 11 Aug 2023 14:29:06 +0300 Subject: [PATCH] tweaks --- src/components/DeviceMemoryHealth.tsx | 4 ++-- src/components/LandingPage.tsx | 2 ++ src/components/StandardLineChart.tsx | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/DeviceMemoryHealth.tsx b/src/components/DeviceMemoryHealth.tsx index c1cd0f22..cbc410ed 100644 --- a/src/components/DeviceMemoryHealth.tsx +++ b/src/components/DeviceMemoryHealth.tsx @@ -12,7 +12,7 @@ type ChartData = { id: string color: string data: DataPoint[] - maxMemory?: number + maxValue?: number } type DeviceMemoryProps = { @@ -28,7 +28,7 @@ const DeviceMemory = ({ currentMemory, maxMemory }: DeviceMemoryProps) => { x: index + 1, y: yValue, })), - maxMemory: maxMemory, + maxValue: maxMemory, }, ] const currentLoad = diff --git a/src/components/LandingPage.tsx b/src/components/LandingPage.tsx index d6bc3dc6..19003acf 100644 --- a/src/components/LandingPage.tsx +++ b/src/components/LandingPage.tsx @@ -1,6 +1,7 @@ import LayoutComponent from './LayoutComponent' import './LandingPage.css' import QuickStartBar from './QuickStartBar' +import DeviceMemory from './DeviceMemoryHealth' function LandingPage() { return ( @@ -14,6 +15,7 @@ function LandingPage() { function Content() { return (
+
diff --git a/src/components/StandardLineChart.tsx b/src/components/StandardLineChart.tsx index 5662bee6..4f3efe1b 100644 --- a/src/components/StandardLineChart.tsx +++ b/src/components/StandardLineChart.tsx @@ -7,14 +7,14 @@ interface DataPoint { interface ChartData { id: string data: DataPoint[] - maxMemory?: number + maxValue?: number } interface StandartLineChartProps { data: ChartData[] } const StandartLineChart = ({ data }: StandartLineChartProps) => { - const maxMemory = data[0].maxMemory || 'auto' + const maxMemory = data[0].maxValue || 'auto' return (