add dragging to step list

This commit is contained in:
Anika Raemer 2025-10-11 12:08:56 +02:00
parent 646bd573cf
commit 575eecfc69
13 changed files with 406 additions and 60 deletions

View file

@ -4,7 +4,7 @@ import { useEffect, useState } from "react"
import { fetchRecipe } from "../../api/points/RecipePoint"
import { getRecipeEditUrl, getRecipeListUrl } from "../../routes"
import ButtonLink from "../basics/ButtonLink"
import { mapRecipeDtoToModel } from "../../mappers/recipeMapper"
import { mapRecipeDtoToModel } from "../../mappers/RecipeMapper"
/**
@ -123,14 +123,6 @@ export default function RecipeDetailPage() {
</ul>
{/* Instructions - @todo add reasonable list delegate component*/}
{/*<h2 className="section-heading">Zubereitung</h2>
<ol className="default-list mb-6">
{recipe.instructionStepList.map((step,j) =>(
<li key={j}>
{step.text}
</li>
))}
</ol>*/}
<ol className="space-y-4">
{recipe.instructionStepList.map((step, j) => (
<li key={j} className="flex items-start gap-4">