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. ))}