saleor-dashboard/src/components/StatusChip/StatusChip.stories.tsx
Krzysztof Wolski 07f8f4b0b8
Order confirmation (#840)
* Order confirmed webhook

* Add status chip component and update order details page header

* refactor

* refactor and update types

* Remove rebase leftovers

* Create order settings page

* Add order setting query

* Connct order settings view with api

* Show order settings update error message

* Popup menu routing to order settings

* Fix circular import error with order settings form types

* Update order settings story

* Update order settings messages

* wip

* Add order confirm mutation and types

* Add confirm order feature to order details

* Update global types

* refactor after review

* refactor after review

* update types

* Revert settings menu removal

* Add changelog entry

Co-authored-by: Tomasz Szymanski <lime129@gmail.com>
Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
Co-authored-by: Dawid Tarasiuk <tarasiukdawid@gmail.com>
2020-11-30 14:19:57 +01:00

13 lines
589 B
TypeScript

import Decorator from "@saleor/storybook/Decorator";
import { storiesOf } from "@storybook/react";
import React from "react";
import StatusChip from "./StatusChip";
import { StatusType } from "./types";
storiesOf("Generics / Status Chip", module)
.addDecorator(Decorator)
.add("neutral", () => <StatusChip label="label" type={StatusType.NEUTRAL} />)
.add("error", () => <StatusChip label="label" type={StatusType.ERROR} />)
.add("success", () => <StatusChip label="label" type={StatusType.SUCCESS} />)
.add("alert", () => <StatusChip label="label" type={StatusType.ALERT} />);