
* Add warning alert before finilizing draft order * Add line error indicators in draft order view * Handle unfilled fields errors before draft order finalize * Handle draft order line errors * Differentiate line alert severity * Fix order line alert margin * Remove unnecessairy comment * Refactor order draft alert components * Update order draft test snapshots * Refaactor order details code * Hide add products button when no products available on order draft page * Hide no shipping methods warning if they cannot be determined * Update product assignment dialog messaages * Update order channel error messages * Fix missing order lines in error crash
21 lines
666 B
TypeScript
21 lines
666 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 = {
|
|
channel: {
|
|
id: "dh87hf34hk8i",
|
|
name: "International store",
|
|
},
|
|
};
|
|
|
|
storiesOf("Orders / Order details channel section", module)
|
|
.addDecorator(CardDecorator)
|
|
.addDecorator(Decorator)
|
|
.add("default", () => <OrderChannelSectionCard {...props} />)
|
|
.add("loading", () => (
|
|
<OrderChannelSectionCard {...props} channel={undefined} />
|
|
));
|