2020-05-14 09:30:32 +00:00
|
|
|
import AddressFormatter from "@saleor/components/AddressFormatter";
|
2019-06-19 14:40:52 +00:00
|
|
|
import { storiesOf } from "@storybook/react";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
import { customer } from "../../../customers/fixtures";
|
|
|
|
import CardDecorator from "../../CardDecorator";
|
|
|
|
import Decorator from "../../Decorator";
|
|
|
|
|
|
|
|
storiesOf("Generics / AddressFormatter", module)
|
|
|
|
.addDecorator(CardDecorator)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => (
|
|
|
|
<AddressFormatter address={customer.defaultBillingAddress} />
|
|
|
|
))
|
|
|
|
.add("when loading", () => <AddressFormatter />);
|