22 lines
633 B
TypeScript
22 lines
633 B
TypeScript
![]() |
import AttributeUnassignDialog, {
|
||
|
AttributeUnassignDialogProps
|
||
|
} from "@saleor/components/AttributeUnassignDialog";
|
||
|
import { storiesOf } from "@storybook/react";
|
||
|
import React from "react";
|
||
|
|
||
|
import Decorator from "../../storybook/Decorator";
|
||
|
|
||
|
const props: AttributeUnassignDialogProps = {
|
||
|
attributeName: "Size",
|
||
|
confirmButtonState: "default",
|
||
|
itemTypeName: "Shoes",
|
||
|
onClose: () => undefined,
|
||
|
onConfirm: () => undefined,
|
||
|
open: true,
|
||
|
title: "Unassign Attribute from Shoes"
|
||
|
};
|
||
|
|
||
|
storiesOf("Generics / Unassign attribute", module)
|
||
|
.addDecorator(Decorator)
|
||
|
.add("default", () => <AttributeUnassignDialog {...props} />);
|