import {
limits,
limitsReached,
pageListProps,
searchPageProps,
sortPageProps,
tabPageProps
} from "@saleor/fixtures";
import Decorator from "@saleor/storybook/Decorator";
import WarehouseListPage, {
WarehouseListPageProps
} from "@saleor/warehouses/components/WarehouseListPage";
import { WarehouseListUrlSortField } from "@saleor/warehouses/urls";
import { storiesOf } from "@storybook/react";
import React from "react";
import { warehouseList } from "../../fixtures";
const props: WarehouseListPageProps = {
...pageListProps.default,
...searchPageProps,
...sortPageProps,
...tabPageProps,
limits,
onBack: () => undefined,
onRemove: () => undefined,
sort: {
...sortPageProps.sort,
sort: WarehouseListUrlSortField.name
},
warehouses: warehouseList
};
storiesOf("Views / Warehouses / Warehouse list", module)
.addDecorator(Decorator)
.add("default", () => )
.add("loading", () => (
))
.add("no data", () => )
.add("no limits", () => )
.add("limits reached", () => (
));