19 lines
648 B
TypeScript
19 lines
648 B
TypeScript
![]() |
import CardDecorator from "@saleor/storybook/CardDecorator";
|
||
|
import Decorator from "@saleor/storybook/Decorator";
|
||
|
import { storiesOf } from "@storybook/react";
|
||
|
import React from "react";
|
||
|
|
||
|
import OrderChannelSectionCard, { OrderChannelSectionCardProps } from ".";
|
||
|
|
||
|
const props: OrderChannelSectionCardProps = {
|
||
|
selectedChannelName: "International store"
|
||
|
};
|
||
|
|
||
|
storiesOf("Orders / Order details channel section", module)
|
||
|
.addDecorator(CardDecorator)
|
||
|
.addDecorator(Decorator)
|
||
|
.add("default", () => <OrderChannelSectionCard {...props} />)
|
||
|
.add("loading", () => (
|
||
|
<OrderChannelSectionCard {...props} selectedChannelName={undefined} />
|
||
|
));
|