8952dac7c0
* 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 |
||
---|---|---|
.. | ||
stories | ||
README.md | ||
index.js | ||
style.scss |
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. |