refactor icons. Somehow button colors are no longer working...

This commit is contained in:
Anika Raemer 2025-10-12 17:17:21 +02:00
parent a224397079
commit 3f075d509b
16 changed files with 152 additions and 110 deletions

View file

@ -16,9 +16,10 @@ import {
} from "@dnd-kit/sortable";
import type { InstructionStepModel } from "../../models/InstructionStepModel";
import { InstructionStepDesktopListItem } from "./InstructionStepDesktopListItem";
import { useInstructionStepListEditor } from "./InstructionStepListEditor";
import Button, { ButtonType } from "../basics/Button";
import { Icon } from "../basics/SvgIcon";
import { instructionStepListEditorMethods } from "./InstructionStepListEditor";
import Button from "../basics/Button";
import { Plus } from "lucide-react";
import { ButtonType } from "../basics/BasicButtonDefinitions";
type InstructionStepListDesktopEditorProps = {
instructionStepList: InstructionStepModel[];
@ -29,7 +30,7 @@ export function InstructionStepListDesktopEditor({
instructionStepList,
onChange,
}: InstructionStepListDesktopEditorProps) {
const { handleUpdate, handleAdd, handleRemove } = useInstructionStepListEditor(
const { handleUpdate, handleAdd, handleRemove } = instructionStepListEditorMethods(
instructionStepList,
onChange
);
@ -76,7 +77,7 @@ export function InstructionStepListDesktopEditor({
</DndContext>
<Button
onClick={handleAdd}
icon={Icon.Plus}
icon={Plus}
text="Schritt hinzufügen"
buttonType={ButtonType.PrimaryButton}
className="mt-4"