Skip to content

Commit

Permalink
style: Update height property to use inline style syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pacholoamit committed Oct 15, 2024
1 parent 848c8a9 commit a269263
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/features/metrics/components/disks/disk.area-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const DiskAreaChart = ({ disk }: DiskAreaChartProps) => {
<StatsRing color={"indigo"} Icon={IconCpu} stats={stats} label={`Disk ${disk.name}`} progress={progress} />
</Grid.Col>

<Grid.Col span={10} h={"190px"}>
<Grid.Col span={10} style={{ height: "190px" }}>
<AreaChart options={chartOptions} />
</Grid.Col>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { useEffect } from 'react';
import React, { useEffect } from "react";

import AreaChart, { useAreaChartState } from '@/components/area-chart';
import Card from '@/components/card';
import StatsRing from '@/components/stats-ring2';
import useGlobalCpuSelectors from '@/features/metrics/stores/global-cpu.store';
import fromNumberToPercentageString from '@/features/metrics/utils/from-number-to-percentage-string';
import { Grid, useMantineTheme } from '@mantine/core';
import { IconCpu, TablerIconsProps } from '@tabler/icons-react';
import AreaChart, { useAreaChartState } from "@/components/area-chart";
import Card from "@/components/card";
import StatsRing from "@/components/stats-ring2";
import useGlobalCpuSelectors from "@/features/metrics/stores/global-cpu.store";
import fromNumberToPercentageString from "@/features/metrics/utils/from-number-to-percentage-string";
import { Grid, useMantineTheme } from "@mantine/core";
import { IconCpu, TablerIconsProps } from "@tabler/icons-react";

// TODO: Remove Luxon and ChartJS
// TODO: Make timestamp work automatically
Expand Down Expand Up @@ -72,7 +72,7 @@ const GlobalCpuAreaChart: React.FC = ({}) => {
/>
</Grid.Col>

<Grid.Col span={10} h={"190px"}>
<Grid.Col span={10} style={{ height: "190px" }}>
<AreaChart options={chartOptions} />
</Grid.Col>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const MemoryAreaChart: React.FC = ({}) => {
progress={progress}
/>
</Grid.Col>
<Grid.Col span={10} h={"190px"}>
<Grid.Col span={10} style={{ height: "190px" }}>
<AreaChart options={chartOptions} />
</Grid.Col>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion src/features/metrics/components/swap/swap.area-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const SwapAreaChart: React.FC = ({}) => {
progress={progress}
/>
</Grid.Col>
<Grid.Col span={10} h={"190px"}>
<Grid.Col span={10} style={{ height: "190px" }}>
<AreaChart options={chartOptions} />
</Grid.Col>
</Grid>
Expand Down

0 comments on commit a269263

Please sign in to comment.