saleor-dashboard/src/components/AvailabilityCard/AvailabilityCard.stories.tsx

26 lines
652 B
TypeScript
Raw Normal View History

import Decorator from "@saleor/storybook/Decorator";
import { storiesOf } from "@storybook/react";
import React from "react";
import AvailabilityCard from "./AvailabilityCard";
const props = {
data: {
availableForPurchase: "",
isAvailableForPurchase: false,
isPublished: true,
publicationDate: "",
visibleInListings: true
},
errors: [],
messages: {
hiddenLabel: "Not published",
hiddenSecondLabel: "hidden label",
visibleLabel: "Published"
},
onChange: () => undefined
};
storiesOf("Generics / AvailabilityCard", module)
.addDecorator(Decorator)
.add("default", () => <AvailabilityCard {...props} />);