diff --git a/src/components/Facility/Consultations/ABGPlots.tsx b/src/components/Facility/Consultations/ABGPlots.tsx index 36f4d934254..20af90436d2 100644 --- a/src/components/Facility/Consultations/ABGPlots.tsx +++ b/src/components/Facility/Consultations/ABGPlots.tsx @@ -46,7 +46,7 @@ export const ABGPlots = (props: any) => { return (
-
+
{ high={7.45} />
-
+
{ high={45} />
-
+
{ high={200} />
-
+
{ high={26} />
-
+
{ high={2} />
-
+
{ high={2} />
-
+
{ high={145} />
-
+
{ high={5.5} />
-
+
{ return (
-
+
{ />
-
+
{
-
+
{ yData={IOvalues} />
-
+
{ yData={yAxisData("total_intake_calculated")} />
-
+
{ )}
-
+
{ yData={yAxisData("total_intake_calculated")} />
-
+
-
+

Infusions:

{Object.entries(results).map((obj: any) => { @@ -257,14 +257,14 @@ export const NutritionPlots = (props: any) => { })}
-
+
-
+

IV Fluids:

{Object.entries(results).map((obj: any) => { @@ -285,14 +285,14 @@ export const NutritionPlots = (props: any) => { })}
-
+
-
+

Feeds:

{Object.entries(results).map((obj: any) => { @@ -332,7 +332,7 @@ export const NutritionPlots = (props: any) => { showOutput ? "grid-row-1 grid gap-4 md:grid-cols-2" : "hidden" } > -
+
{ yData={yAxisData("total_output_calculated")} />
-
+
-
+

Output:

{Object.entries(results).map((obj: any) => { diff --git a/src/components/Facility/Consultations/PrimaryParametersPlot.tsx b/src/components/Facility/Consultations/PrimaryParametersPlot.tsx index 067e197e374..d845e994b00 100644 --- a/src/components/Facility/Consultations/PrimaryParametersPlot.tsx +++ b/src/components/Facility/Consultations/PrimaryParametersPlot.tsx @@ -127,10 +127,10 @@ export const PrimaryParametersPlot = ({ return (
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+

Rhythm

{Object.keys(rhythmValues).length === 0 ? (
diff --git a/src/components/Facility/Consultations/VentilatorPlot.tsx b/src/components/Facility/Consultations/VentilatorPlot.tsx index db672f5de7d..ad14eb24c2f 100644 --- a/src/components/Facility/Consultations/VentilatorPlot.tsx +++ b/src/components/Facility/Consultations/VentilatorPlot.tsx @@ -80,7 +80,7 @@ export const VentilatorPlot = (props: any) => { return (
-
+
{ high={30} />
-
+
{ high={25} />
-
+
{ high={20} />
-
+
{ high={15} />
-
+
{ yData={yAxisData("ventilator_tidal_volume")} />
-
+
{ high={10} />
-
+
{ high={60} />
-
+
{ high={100} />
-
+
{ high={45} />
-
+
{ falseName="No" />
-
+
{ yData={yAxisData("ventilator_oxygen_modality_oxygen_rate")} />
-
+
{ ))} +
} diff --git a/src/components/Facility/Consultations/components/ReactEcharts.tsx b/src/components/Facility/Consultations/components/ReactEcharts.tsx index 8bec94b1e1e..e7d6c0291d2 100644 --- a/src/components/Facility/Consultations/components/ReactEcharts.tsx +++ b/src/components/Facility/Consultations/components/ReactEcharts.tsx @@ -1,4 +1,4 @@ -import { Suspense, memo } from "react"; +import { memo } from "react"; import { EChartsReactProps } from "echarts-for-react"; import ReactEchartsCore from "echarts-for-react/lib/core"; import { BarChart, LineChart } from "echarts/charts"; @@ -38,11 +38,7 @@ function ReactEcharts(props: ReactEchartsProps) { ...props, echarts: props.echarts || echarts, }; - return ( - Loading chart...
}> - - - ); + return ; } export default memo(ReactEcharts); diff --git a/src/components/Facility/Consultations/components/StackedLinePlot.tsx b/src/components/Facility/Consultations/components/StackedLinePlot.tsx index c0ef4388ec3..c79175b8e53 100644 --- a/src/components/Facility/Consultations/components/StackedLinePlot.tsx +++ b/src/components/Facility/Consultations/components/StackedLinePlot.tsx @@ -100,7 +100,7 @@ export const StackedLinePlot = (props: StackedLinePlotProps) => { return ( +
}