
* Require trailing commas * Add trailing commas * Add trailing commas in testUtils dir * Add trailing commas
20 lines
655 B
TypeScript
20 lines
655 B
TypeScript
import CardDecorator from "@saleor/storybook/CardDecorator";
|
|
import Decorator from "@saleor/storybook/Decorator";
|
|
import { storiesOf } from "@storybook/react";
|
|
import React from "react";
|
|
|
|
import DraftOrderChannelSectionCard, {
|
|
DraftOrderChannelSectionCardProps,
|
|
} from ".";
|
|
|
|
const props: DraftOrderChannelSectionCardProps = {
|
|
channelName: "Default Channel",
|
|
};
|
|
|
|
storiesOf("Orders / Draft order channel section", module)
|
|
.addDecorator(CardDecorator)
|
|
.addDecorator(Decorator)
|
|
.add("default", () => <DraftOrderChannelSectionCard {...props} />)
|
|
.add("loading", () => (
|
|
<DraftOrderChannelSectionCard {...props} channelName={undefined} />
|
|
));
|