2019-06-19 14:40:52 +00:00
|
|
|
import { Omit } from "@material-ui/core";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
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} />);
|