Update therapeutic range settings add toggle
This commit is contained in:
@@ -41,6 +41,7 @@ const SimulationChart = ({
|
||||
chartView,
|
||||
showDayTimeOnXAxis,
|
||||
showDayReferenceLines,
|
||||
showTherapeuticRange,
|
||||
therapeuticRange,
|
||||
simulationDays,
|
||||
displayedDays,
|
||||
@@ -396,7 +397,7 @@ const SimulationChart = ({
|
||||
yAxisId="concentration"
|
||||
/>
|
||||
))}
|
||||
{(chartView === 'damph' || chartView === 'both') && (
|
||||
{showTherapeuticRange && (chartView === 'damph' || chartView === 'both') && (
|
||||
<ReferenceLine
|
||||
y={parseFloat(therapeuticRange.min) || 0}
|
||||
label={{ value: t('refLineMin'), position: 'insideTopLeft' }}
|
||||
@@ -406,7 +407,7 @@ const SimulationChart = ({
|
||||
yAxisId="concentration"
|
||||
/>
|
||||
)}
|
||||
{(chartView === 'damph' || chartView === 'both') && (
|
||||
{showTherapeuticRange && (chartView === 'damph' || chartView === 'both') && (
|
||||
<ReferenceLine
|
||||
y={parseFloat(therapeuticRange.max) || 0}
|
||||
label={{ value: t('refLineMax'), position: 'insideTopLeft' }}
|
||||
|
||||
Reference in New Issue
Block a user