fix: spelling component name
This commit is contained in:
parent
0e55367934
commit
628c796e8f
|
@ -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) => {
|
|||
}}
|
||||
>
|
||||
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
|
||||
<StandartLineChart data={chartData} isInteractive={false} />
|
||||
<StandardLineChart data={chartData} isInteractive={false} />
|
||||
</div>
|
||||
<YStack space={'$3'}>
|
||||
<Text size={15} weight={'semibold'}>
|
||||
|
|
|
@ -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
|
|||
}}
|
||||
>
|
||||
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
|
||||
<StandartLineChart data={chartData} isInteractive={false} />
|
||||
<StandardLineChart data={chartData} isInteractive={false} />
|
||||
</div>
|
||||
<YStack space={'$3'}>
|
||||
<Text size={15} weight={'semibold'}>
|
||||
|
|
|
@ -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) => {
|
|||
}}
|
||||
>
|
||||
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
|
||||
<StandartLineChart data={chartData} isInteractive={false} />
|
||||
<StandardLineChart data={chartData} isInteractive={false} />
|
||||
</div>
|
||||
<YStack space={'$3'}>
|
||||
<Text size={15} weight={'semibold'}>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) => {
|
|||
</Text>
|
||||
</YStack>
|
||||
<Stack style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
|
||||
<StandartLineChart data={chartData} />
|
||||
<StandardLineChart data={chartData} />
|
||||
</Stack>
|
||||
</XStack>
|
||||
<Separator borderColor={'#e3e3e3'} style={{ marginTop: 'auto' }} />
|
||||
|
|
|
@ -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) => {
|
|||
}}
|
||||
>
|
||||
<Stack style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
|
||||
<StandartLineChart data={chartData} />
|
||||
<StandardLineChart data={chartData} />
|
||||
</Stack>
|
||||
<YStack space={'$3'} justifyContent="space-between">
|
||||
<Text size={15} weight={'semibold'}>
|
||||
|
|
|
@ -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) => {
|
|||
}}
|
||||
>
|
||||
<Stack style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
|
||||
<StandartLineChart data={chartData} />
|
||||
<StandardLineChart data={chartData} />
|
||||
</Stack>
|
||||
<YStack space={'$3'} width={'100%'} justifyContent="space-between">
|
||||
<XStack justifyContent="space-between" width={'100%'}>
|
||||
|
|
Loading…
Reference in New Issue