- {ITEMS.map(({calories, proteins, fats, carbohydrates, mealName, meals}, index) => (
-
- }
- />
-
-
-
-
-
-
+ {list.map(({ listName, macronutrients, meals }, index) => (
+
+ handleClick(listName)}>
+ } />
+ {openListName[listName] ? : }
+
+ {meals.length ? (
+
+ {meals.map(({ name, macronutrients }, index) => (
+
+ ))}
+
+ ) : null }
+
))}
);
diff --git a/src/components/Navbar/index.js b/src/components/Navbar/index.js
index fb70d2b..fb8e637 100644
--- a/src/components/Navbar/index.js
+++ b/src/components/Navbar/index.js
@@ -20,9 +20,9 @@ const Navbar = () => {
const classes = useStyles()
return (
-