From 05595fba94d0925d293ef214ecfdfba65b787fd3 Mon Sep 17 00:00:00 2001 From: araemer Date: Tue, 21 Oct 2025 13:22:47 +0200 Subject: [PATCH] Component for mobile instruction step editor's list item --- .../InstructionStepListMobileEditor.tsx | 54 +++------------ .../recipes/InstructionStepMobileListItem.tsx | 69 +++++++++++++++++++ 2 files changed, 80 insertions(+), 43 deletions(-) create mode 100644 frontend/src/components/recipes/InstructionStepMobileListItem.tsx diff --git a/frontend/src/components/recipes/InstructionStepListMobileEditor.tsx b/frontend/src/components/recipes/InstructionStepListMobileEditor.tsx index 15376d9..c471842 100644 --- a/frontend/src/components/recipes/InstructionStepListMobileEditor.tsx +++ b/frontend/src/components/recipes/InstructionStepListMobileEditor.tsx @@ -2,11 +2,12 @@ * Mobile editor using Up/Down buttons for reordering */ -import {ArrowDown, ArrowUp, Plus, X} from "lucide-react"; +import {Plus} from "lucide-react"; import type {InstructionStepModel} from "../../models/InstructionStepModel"; import Button from "../basics/Button"; import {ButtonType} from "../basics/BasicButtonDefinitions"; import {instructionStepListEditorMethods} from "./InstructionStepListEditorMethods.ts"; +import {InstructionStepMobileListItem} from "./InstructionStepMobileListItem.tsx"; type InstructionStepListEditorMobileProps = { instructionStepList: InstructionStepModel[]; @@ -36,48 +37,15 @@ export function InstructionStepListMobileEditor({

Zubereitung

{instructionStepList.map((step, index) => ( -
-
-
- {index + 1} -
-
-
-
- -