518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 import React, { useEffect, useMemo, useState } from "react";
{n.key} / scoop
setLibrary((lib) => ({ ...lib, [name]: { ...(lib[name] || {}), [n.key]: Number(e.target.value) || 0 }, }))}/> ))} ))} ))}
Fluids & kcal per 100 mL
{fluids.map((f, idx) => (
{ const v = e.target.value; setFluids((arr) => arr.map((x, i) => i === idx ? { ...x, name: v } : x)); }} />
kcal/100 mL
setFluids((arr) => arr.map((x, i) => i === idx ? { ...x, kcalPer100mL: Number(e.target.value) || 0 } : x))} />
setFluids((arr) => arr.filter((_, i) => i !== idx))}>
))}
setFluids((arr) => [...arr, { name: "New fluid", kcalPer100mL: 0 }])}>
Add fluid
{Object.entries(driSets).map(([setName, setVals]) => (
{setName}
{NUTRIENTS.map((n) => (
{n.key} DRI
setDriSets((sets) => ({ ...sets, [setName]: { ...(sets[setName] || {}), [n.key]: n.macro ? (e.target.value === "" ? null : Number(e.target.value)) : (Number(e.target.value) || 0) }, }))} />
))}
))}
setOpen(false)}>
Done
); }
top of page
Log In
BUY NOW
Home
Our Meals
Meals
Plus
How We Are Different
Nutritionals
Kidney Health
Meal Calculator
Providers
Our Story
Blog
Media
Help
Contact Us
FAQ
Insurance
Find a DME
Shop
Gift Card
More
Use tab to navigate through the menu items.
bottom of page