diff --git a/src/pages/nutrition/NutrimentCell.tsx b/src/pages/nutrition/NutrimentCell.tsx
index 88c836faa..696a37261 100644
--- a/src/pages/nutrition/NutrimentCell.tsx
+++ b/src/pages/nutrition/NutrimentCell.tsx
@@ -8,11 +8,24 @@ interface NutrimentCellProps {
tabIndex: number;
value?: string;
unit?: string;
+ productValue?: number;
+ productUnit?: string;
+ displayOFFValue: boolean;
setValues: (object) => void;
}
export const NutrimentCell = (props: NutrimentCellProps) => {
- const { nutrimentId, nutrimentKey, tabIndex, value, unit, setValues } = props;
+ const {
+ nutrimentId,
+ nutrimentKey,
+ tabIndex,
+ value,
+ unit,
+ setValues,
+ productValue,
+ productUnit,
+ displayOFFValue,
+ } = props;
return (
{
element.classList.remove("focused");
}}
>
-
- setValues((p) => ({
- ...p,
- [nutrimentKey]: {
- ...p[nutrimentKey],
- value: event.target.value,
- },
- }))
- }
- />
+
+
+ setValues((p) => ({
+ ...p,
+ [nutrimentKey]: {
+ ...p[nutrimentKey],
+ value: event.target.value,
+ },
+ }))
+ }
+ />
+
+ {displayOFFValue && (
+
+ )}
+
{isValidUnit(unit) ? (
|