diff --git a/LeftOvers/assets/images/pasta.png b/LeftOvers/assets/images/pasta.png new file mode 100644 index 0000000..785bdd9 Binary files /dev/null and b/LeftOvers/assets/images/pasta.png differ diff --git a/LeftOvers/components/RecipeElement.tsx b/LeftOvers/components/RecipeElement.tsx index 027a99c..6c67046 100644 --- a/LeftOvers/components/RecipeElement.tsx +++ b/LeftOvers/components/RecipeElement.tsx @@ -20,6 +20,7 @@ import riceVegetable from '../assets/images/rice_vegetables.png'; import riceMeat from '../assets/images/Meat_and_Rice.png'; import riceFish from '../assets/images/rice_fish.png'; import riceEgg from '../assets/images/riceEgg.png'; +import pasta from '../assets/images/pasta.png'; import ColorContext from '../theme/ColorContext'; import Recipes from '../Models/Recipes'; @@ -51,7 +52,25 @@ export default function RecipeElement(props: RecipeElementProps) { const eggDictionary: string[] = ["egg", "omelette"]; const soupDictionary: string[] = ["soup"]; const pizzaDictionary: string[] = ["pizza"]; - const dessertDictionary: string[] = ['cake', 'cupcake', 'muffin', 'cookie', 'brownie', 'pie', 'tart', 'macaron', 'doughnut', 'eclair', 'pancake', 'waffle', 'crepe', 'pudding', 'gelato', 'sorbet', 'ice cream', 'cheesecake']; + const dessertDictionary: string[] = ['cake', 'cupcake', 'muffin', 'cookie', 'brownie', 'pie', 'tart', 'macaron', 'doughnut', 'eclair', 'pancake', 'waffle', 'crepe', 'pudding', 'gelato', 'sorbet', 'ice cream', 'cheesecake', 'sugar']; + const pastaDictionary: string[] = [ + 'pasta', + 'spaghetti', + 'penne', + 'fettuccine', + 'macaroni', + 'rigatoni', + 'farfalle', + 'linguine', + 'lasagne', + 'ravioli', + 'tortellini', + 'gnocchi', + 'spaetzle', + 'noodles', + 'spatzle', + 'spatzen', + ]; const imagesDictionary = { meat: meatDictionary, @@ -63,6 +82,7 @@ export default function RecipeElement(props: RecipeElementProps) { pizza : pizzaDictionary, soup : soupDictionary, dessert : dessertDictionary, + pasta : pastaDictionary, unknown: [], }; @@ -126,6 +146,8 @@ export default function RecipeElement(props: RecipeElementProps) { return fish; case 'vegetables': return vegan; + case 'pasta': + return pasta; case 'MeatAndVegetables': return meat_with_vegetable; case 'FishAndMeat': @@ -222,7 +244,7 @@ export default function RecipeElement(props: RecipeElementProps) { {props.recipe.id} {props.recipe.name} - + Ingredients diff --git a/LeftOvers/screens/RecipeDetails.tsx b/LeftOvers/screens/RecipeDetails.tsx index 03ce2c3..33a0a72 100644 --- a/LeftOvers/screens/RecipeDetails.tsx +++ b/LeftOvers/screens/RecipeDetails.tsx @@ -25,6 +25,7 @@ import riceMeat from '../assets/images/Meat_and_Rice.png'; import riceFish from '../assets/images/rice_fish.png'; import riceEgg from '../assets/images/riceEgg.png'; import brochette from '../assets/images/brochette.png'; +import pasta from '../assets/images/pasta.png'; @@ -48,7 +49,25 @@ export default function RecipeDetails({ route }) { const eggDictionary: string[] = ["egg", "omelette"]; const soupDictionary: string[] = ["soup"]; const pizzaDictionary: string[] = ["pizza"]; - const dessertDictionary: string[] = ['cake', 'cupcake', 'muffin', 'cookie', 'brownie', 'pie', 'tart', 'macaron', 'doughnut', 'eclair', 'pancake', 'waffle', 'crepe', 'pudding', 'gelato', 'sorbet', 'ice cream', 'cheesecake']; + const dessertDictionary: string[] = ['cake', 'cupcake', 'muffin', 'cookie', 'brownie', 'pie', 'tart', 'macaron', 'doughnut', 'eclair', 'pancake', 'waffle', 'crepe', 'pudding', 'gelato', 'sorbet', 'ice cream', 'cheesecake', 'sugar']; + const pastaDictionary: string[] = [ + 'pasta', + 'spaghetti', + 'penne', + 'fettuccine', + 'macaroni', + 'rigatoni', + 'farfalle', + 'linguine', + 'lasagne', + 'ravioli', + 'tortellini', + 'gnocchi', + 'spaetzle', + 'noodles', + 'spatzle', + 'spatzen', + ]; const imagesDictionary = { meat: meatDictionary, @@ -60,6 +79,7 @@ export default function RecipeDetails({ route }) { pizza : pizzaDictionary, soup : soupDictionary, dessert : dessertDictionary, + pasta : pastaDictionary, unknown: [], }; @@ -123,6 +143,8 @@ export default function RecipeDetails({ route }) { return fish; case 'vegetables': return vegan; + case 'pasta': + return pasta; case 'MeatAndVegetables': return meat_with_vegetable; case 'FishAndMeat':