fix: Jen s chybějícímí údaji -> k doplnění
feat: zobrazení aktuálního počtu jídel feat: chuť a typ receptu
This commit is contained in:
1 parent
b637e243d5
commit
35cbc5a9ca
11 files changed
+206
-21
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faPenToSquare, faTrash } from "@fortawesome/free-solid-svg-icons";
|
||||
import { MealTemplate } from "../../../types";
|
||||
import { RECIPE_FLAVOR_NAMES } from "../enums";
|
||||
import { deriveRecipe, formatCalories, formatPrice, formatWeight, getIngredientCalories } from "../Utils";
|
||||
|
||||
type Props = {
|
||||
@@ -22,6 +23,8 @@ const MealTemplateCard = ({ template, busy, onEdit, onDelete }: Readonly<Props>)
|
||||
<div className="template-head">
|
||||
<div className="template-title">
|
||||
Recept
|
||||
{template.category && <span className="tag">{template.category}</span>}
|
||||
<span className="tag">{RECIPE_FLAVOR_NAMES[template.flavor].toLowerCase()}</span>
|
||||
{template.weight != null && <span className="tag">porce {formatWeight(template.weight)}</span>}
|
||||
{(template.servings ?? 1) > 1 && (
|
||||
<span className="tag">{template.servings} porcí</span>
|
||||
|
||||
Reference in new issue
Block a user