saleor-dashboard/src/storybook/stories/components/StatusLabel.tsx
Krzysztof Wolski a82de30309
Add circleci config and enhance our linters (#519)
* Add circleci config

* Season linting config

* Apply code style
2020-05-14 11:30:32 +02:00

19 lines
607 B
TypeScript

import StatusLabel from "@saleor/components/StatusLabel";
import { storiesOf } from "@storybook/react";
import React from "react";
import CardDecorator from "../../CardDecorator";
import Decorator from "../../Decorator";
storiesOf("Generics / StatusLabel", module)
.addDecorator(CardDecorator)
.addDecorator(Decorator)
.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" />
));