From 628c796e8fa32d9128075fbd5e149f0b710c4d71 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Thu, 19 Oct 2023 11:22:22 +0300 Subject: [PATCH] fix: spelling component name --- src/components/Charts/DeviceCPULoad.tsx | 4 ++-- src/components/Charts/DeviceMemoryHealth.tsx | 4 ++-- src/components/Charts/DeviceNetworkHealth.tsx | 4 ++-- src/components/Charts/StandardLineChart.tsx | 7 ++++--- src/pages/Dashboard/CPULoad/CPUCard.tsx | 4 ++-- src/pages/Dashboard/MemoryCard/MemoryCard.tsx | 4 ++-- src/pages/Dashboard/NetworkCard/NetworkCard.tsx | 4 ++-- 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/Charts/DeviceCPULoad.tsx b/src/components/Charts/DeviceCPULoad.tsx index d3ee8910..0fd720ae 100644 --- a/src/components/Charts/DeviceCPULoad.tsx +++ b/src/components/Charts/DeviceCPULoad.tsx @@ -1,4 +1,4 @@ -import StandartLineChart from './StandardLineChart' +import StandardLineChart from './StandardLineChart' import IconText from '../General/IconText' import { Separator, XStack, YStack } from 'tamagui' import { Shadow, Text } from '@status-im/components' @@ -60,7 +60,7 @@ const DeviceCPULoad = ({ load }: DeviceCPULoadProps) => { }} >
- +
diff --git a/src/components/Charts/DeviceMemoryHealth.tsx b/src/components/Charts/DeviceMemoryHealth.tsx index 4e151ae0..f749f082 100644 --- a/src/components/Charts/DeviceMemoryHealth.tsx +++ b/src/components/Charts/DeviceMemoryHealth.tsx @@ -1,4 +1,4 @@ -import StandartLineChart from './StandardLineChart' +import StandardLineChart from './StandardLineChart' import IconText from '../General/IconText' import { Separator, XStack, YStack } from 'tamagui' @@ -64,7 +64,7 @@ const DeviceMemoryHealth = ({ currentMemory, maxMemory }: DeviceMemoryHealthProp }} >
- +
diff --git a/src/components/Charts/DeviceNetworkHealth.tsx b/src/components/Charts/DeviceNetworkHealth.tsx index 5aacaac3..2d09f50b 100644 --- a/src/components/Charts/DeviceNetworkHealth.tsx +++ b/src/components/Charts/DeviceNetworkHealth.tsx @@ -1,4 +1,4 @@ -import StandartLineChart from './StandardLineChart' +import StandardLineChart from './StandardLineChart' import IconText from '../General/IconText' import { Separator, XStack, YStack } from 'tamagui' import { Shadow as ShadowBox, Text } from '@status-im/components' @@ -71,7 +71,7 @@ const DeviceNetworkHealth = ({ latency }: DeviceNetworkHealthProps) => { }} >
- +
diff --git a/src/components/Charts/StandardLineChart.tsx b/src/components/Charts/StandardLineChart.tsx index 79ce6e3c..16a55732 100644 --- a/src/components/Charts/StandardLineChart.tsx +++ b/src/components/Charts/StandardLineChart.tsx @@ -1,4 +1,5 @@ import { ResponsiveLine } from '@nivo/line' + interface DataPoint { x: number y: number @@ -11,11 +12,11 @@ interface ChartData { maxValue?: number } -interface StandartLineChartProps { +interface StandardLineChartProps { data: ChartData[] isInteractive?: boolean } -const StandartLineChart = ({ data, isInteractive }: StandartLineChartProps) => { +const StandardLineChart = ({ data, isInteractive }: StandardLineChartProps) => { const maxMemory = data[0].maxValue || 'auto' const colors = data.map(dataset => dataset.color) @@ -47,4 +48,4 @@ const StandartLineChart = ({ data, isInteractive }: StandartLineChartProps) => { /> ) } -export default StandartLineChart +export default StandardLineChart diff --git a/src/pages/Dashboard/CPULoad/CPUCard.tsx b/src/pages/Dashboard/CPULoad/CPUCard.tsx index 92f4c5d7..7a4d8ce9 100644 --- a/src/pages/Dashboard/CPULoad/CPUCard.tsx +++ b/src/pages/Dashboard/CPULoad/CPUCard.tsx @@ -2,7 +2,7 @@ import { Separator, Stack, XStack, YStack } from 'tamagui' import { Text } from '@status-im/components' import { IncorrectIcon } from '@status-im/icons' -import StandartLineChart from '../../../components/Charts/StandardLineChart' +import StandardLineChart from '../../../components/Charts/StandardLineChart' import IconText from '../../../components/General/IconText' import Icon from '../../../components/General/Icon' import DashboardCardWrapper from '../DashboardCardWrapper' @@ -65,7 +65,7 @@ const CPUCard = ({ load }: CPUCardProps) => { - + diff --git a/src/pages/Dashboard/MemoryCard/MemoryCard.tsx b/src/pages/Dashboard/MemoryCard/MemoryCard.tsx index 61adc0ea..36ad4b3a 100644 --- a/src/pages/Dashboard/MemoryCard/MemoryCard.tsx +++ b/src/pages/Dashboard/MemoryCard/MemoryCard.tsx @@ -2,7 +2,7 @@ import { Separator, Stack, XStack, YStack } from 'tamagui' import { Text } from '@status-im/components' import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' -import StandartLineChart from '../../../components/Charts/StandardLineChart' +import StandardLineChart from '../../../components/Charts/StandardLineChart' import IconText from '../../../components/General/IconText' import DashboardCardWrapper from '../DashboardCardWrapper' @@ -58,7 +58,7 @@ const MemoryCard = ({ currentMemory, maxMemory }: MemoryCardProps) => { }} > - + diff --git a/src/pages/Dashboard/NetworkCard/NetworkCard.tsx b/src/pages/Dashboard/NetworkCard/NetworkCard.tsx index 6ed9138a..4013a59c 100644 --- a/src/pages/Dashboard/NetworkCard/NetworkCard.tsx +++ b/src/pages/Dashboard/NetworkCard/NetworkCard.tsx @@ -2,7 +2,7 @@ import { Separator, Stack, XStack, YStack } from 'tamagui' import { Text } from '@status-im/components' import { CheckCircleIcon, IncorrectIcon } from '@status-im/icons' -import StandartLineChart from '../../../components/Charts/StandardLineChart' +import StandardLineChart from '../../../components/Charts/StandardLineChart' import IconText from '../../../components/General/IconText' import DashboardCardWrapper from '../DashboardCardWrapper' @@ -65,7 +65,7 @@ const NetworkCard = ({ uploadRate, downloadRate }: NetworkCardProps) => { }} > - +