Pass isInteractive to each graph separately

This commit is contained in:
Hristo Nedelkov 2023-09-28 23:06:31 +03:00
parent c9f2320fc5
commit 6fff9f9feb
4 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ const DeviceCPULoad = ({ load }: DeviceCPULoadProps) => {
}} }}
> >
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}> <div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
<StandartLineChart data={chartData} /> <StandartLineChart data={chartData} isInteractive={false} />
</div> </div>
<YStack space={'$3'}> <YStack space={'$3'}>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>

View File

@ -66,7 +66,7 @@ const DeviceMemoryHealth = ({ currentMemory, maxMemory }: DeviceMemoryHealthProp
}} }}
> >
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}> <div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
<StandartLineChart data={chartData} /> <StandartLineChart data={chartData} isInteractive={false} />
</div> </div>
<YStack space={'$3'}> <YStack space={'$3'}>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>

View File

@ -67,7 +67,7 @@ const DeviceNetworkHealth = ({ latency }: DeviceNetworkHealthProps) => {
}} }}
> >
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}> <div style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}>
<StandartLineChart data={chartData} /> <StandartLineChart data={chartData} isInteractive={false} />
</div> </div>
<YStack space={'$3'}> <YStack space={'$3'}>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>

View File

@ -64,7 +64,7 @@ const DeviceStorageHealth = ({ storage, maxStorage }: DeviceStorageHealthProps)
height: '4.75rem', height: '4.75rem',
}} }}
> >
<StandardGauge data={data(free)} /> <StandardGauge data={data(free)} isInteractive={false}/>
</Stack> </Stack>
<YStack space={'$3'}> <YStack space={'$3'}>
<Text size={15} weight={'semibold'}> <Text size={15} weight={'semibold'}>