saleor-dashboard/src/storybook/stories/collections/CollectionCreatePage.tsx
2019-08-09 12:26:22 +02:00

21 lines
692 B
TypeScript

import { Omit } from "@material-ui/core";
import { storiesOf } from "@storybook/react";
import React from "react";
import CollectionCreatePage, {
CollectionCreatePageProps
} from "../../../collections/components/CollectionCreatePage";
import Decorator from "../../Decorator";
const props: Omit<CollectionCreatePageProps, "classes"> = {
disabled: false,
errors: [],
onBack: () => undefined,
onSubmit: () => undefined,
saveButtonBarState: "default"
};
storiesOf("Views / Collections / Create collection", module)
.addDecorator(Decorator)
.add("default", () => <CollectionCreatePage {...props} />)
.add("loading", () => <CollectionCreatePage {...props} disabled={true} />);