refactor icons. Somehow button colors are no longer working...
This commit is contained in:
parent
a224397079
commit
3f075d509b
16 changed files with 152 additions and 110 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue