Add ButtonGroupLayout Component
This commit is contained in:
parent
db23d06fb2
commit
c188639b1c
4 changed files with 35 additions and 9 deletions
|
|
@ -6,6 +6,7 @@ import Button from "../basics/Button"
|
|||
import {InstructionStepListEditor} from "./InstructionStepListEditor"
|
||||
import type {InstructionStepModel} from "../../models/InstructionStepModel"
|
||||
import {ButtonType} from "../basics/BasicButtonDefinitions"
|
||||
import ButtonGroupLayout from "../basics/ButtonGroupLayout.tsx";
|
||||
|
||||
type RecipeEditorProps = {
|
||||
recipe: RecipeModel
|
||||
|
|
@ -141,7 +142,7 @@ export default function RecipeEditor({recipe, onSave, onCancel}: RecipeEditorPro
|
|||
/>
|
||||
|
||||
|
||||
<div className="button-group">
|
||||
<ButtonGroupLayout>
|
||||
{/* Save Button */}
|
||||
<Button
|
||||
onClick={() => handleSave(draft)}
|
||||
|
|
@ -152,7 +153,7 @@ export default function RecipeEditor({recipe, onSave, onCancel}: RecipeEditorPro
|
|||
onClick={() => onCancel()}
|
||||
text={"Abbrechen"}
|
||||
/>
|
||||
</div>
|
||||
</ButtonGroupLayout>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue