From 2f807aadd98944b21ef381e795235a8580c6c50b Mon Sep 17 00:00:00 2001 From: Amalie Date: Wed, 7 Oct 2026 11:57:38 +0200 Subject: [PATCH] =?UTF-8?q?Har=20lagt=20til=20checkboxes=20fra=20mui=20p?= =?UTF-8?q?=C3=A5=20ingredients=20og=20steps=20under=20recipeDetail=20(#61?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/recipe/RecipeDetail.tsx | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/client/src/components/recipe/RecipeDetail.tsx b/client/src/components/recipe/RecipeDetail.tsx index 9a428b4..f7d0734 100644 --- a/client/src/components/recipe/RecipeDetail.tsx +++ b/client/src/components/recipe/RecipeDetail.tsx @@ -2,6 +2,8 @@ import type { Recipe } from '../../types/recipe'; import RestaurantIcon from '@mui/icons-material/Restaurant'; import AccessTimeIcon from '@mui/icons-material/AccessTime'; import { Rating } from '@mui/material'; +import Checkbox from '@mui/material/Checkbox'; +import FormControlLabel from '@mui/material/FormControlLabel'; // Sier hva komponenten får inn. type RecipeDetailProps = { @@ -50,19 +52,39 @@ export function RecipeDetail({ recipe }: RecipeDetailProps) {

Steg

-
    +
      {recipe.steps.map((step) => (
    1. - {step.instruction} + + } + label={`${step.order}. ${step.instruction}`} + labelPlacement="start" + sx={{ width: '100%', justifyContent: 'space-between', ml: 0 }} + />
    2. ))}