2019-06-19 14:40:52 +00:00
|
|
|
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 MenuItemDialog, {
|
|
|
|
MenuItemDialogProps
|
|
|
|
} from "../../../navigation/components/MenuItemDialog";
|
|
|
|
import Decorator from "../../Decorator";
|
|
|
|
|
|
|
|
const props: MenuItemDialogProps = {
|
|
|
|
categories: [
|
|
|
|
{
|
|
|
|
__typename: "Category",
|
|
|
|
id: "1",
|
|
|
|
name: "Chairs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: "Category",
|
|
|
|
id: "2",
|
|
|
|
name: "Desks"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
collections: [],
|
|
|
|
confirmButtonState: "default",
|
|
|
|
disabled: false,
|
|
|
|
loading: false,
|
|
|
|
onClose: () => undefined,
|
|
|
|
onQueryChange: () => undefined,
|
|
|
|
onSubmit: () => undefined,
|
|
|
|
open: true,
|
|
|
|
pages: []
|
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Navigation / Menu item create", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <MenuItemDialog {...props} />);
|