Skip to content

Recipe Card - Ingredient Status by Pantry Symbol #27

@wesleybvance

Description

@wesleybvance
  • Icon on recipe cards indicate how user’s pantryIngredients match recipe’s recipeIngredients
    • function to iterate pantryIngredients over recipeIngredients and make evaluations between ingredient id and amount
  • Status Icons render by ternary operator depending on result from evaluation function
    • Green: all recipeIngredient ids have matching pantryIngredient ids
    • Yellow: some recipeIngredient ids have matching pantryIngredient ids
    • Red: no recipeIngredient ids have matching pantryIngredient ids

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions