Add recipe deletion functionality and enhance inventory consumption details

This commit is contained in:
Nils-Johan Gynther
2026-04-10 18:44:06 +02:00
parent a743f832a2
commit dd17656e4c
7 changed files with 174 additions and 49 deletions
@@ -104,7 +104,7 @@ export default function InventoryConsumptionHistory({ id }: Props) {
}}
>
<div>
<strong>Använt:</strong> {entry.amountUsed}
<strong>Använt:</strong> {entry.amountUsed}{entry.inventoryItem?.unit ? ` ${entry.inventoryItem.unit}` : ''}
</div>
<div>
<strong>Tid:</strong> {formatDateTime(entry.createdAt)}