woocommerce/packages/js/components/src/order-status
Chi-Hsuan Huang 8952dac7c0
Set up i18n-text-domain rule and fix missing text domain (#33780)
* Set allowedTextDomain to only allow woocommmerce text domain

* Set allowedTextDomain to only allow woocommerce text domain

* Fix wrong or missing i18n text domain

* Add changelog

* Add changelog
2022-07-08 18:37:30 +08:00
..
stories Set up i18n-text-domain rule and fix missing text domain (#33780) 2022-07-08 18:37:30 +08:00
README.md Moved WCA Packages 2022-03-18 14:25:26 -07:00
index.js Moved WCA Packages 2022-03-18 14:25:26 -07:00
style.scss Moved WCA Packages 2022-03-18 14:25:26 -07:00

README.md

OrderStatus

Use OrderStatus to display a badge with human-friendly text describing the current order status.

Usage

const order = { status: 'processing' }; // Use a real WooCommerce Order here.

<OrderStatus order={ order } />

Props

Name Type Default Description
order Object null (required) The order to display a status for. See: https://woocommerce.github.io/woocommerce-rest-api-docs/#order-properties
className String null Additional CSS classes
orderStatusMap Object {} A map of order status to human-friendly label.