2020-05-14 09:30:32 +00:00
|
|
|
import StatusLabel from "@saleor/components/StatusLabel";
|
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 CardDecorator from "../../CardDecorator";
|
|
|
|
import Decorator from "../../Decorator";
|
|
|
|
|
|
|
|
storiesOf("Generics / StatusLabel", module)
|
2019-10-30 14:34:24 +00:00
|
|
|
.addDecorator(CardDecorator)
|
|
|
|
.addDecorator(Decorator)
|
2019-06-19 14:40:52 +00:00
|
|
|
.add("when success", () => (
|
|
|
|
<StatusLabel label="Example label" status="success" />
|
|
|
|
))
|
|
|
|
.add("when neutral", () => (
|
|
|
|
<StatusLabel label="Example label" status="neutral" />
|
|
|
|
))
|
|
|
|
.add("when error", () => (
|
|
|
|
<StatusLabel label="Example label" status="error" />
|
|
|
|
));
|