saleor-dashboard/src/storybook/stories/components/AddressFormatter.tsx

16 lines
545 B
TypeScript
Raw Normal View History

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 AddressFormatter from "@saleor/components/AddressFormatter";
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 />);