fc030fb007
Fixes woocommerce/woocommerce-admin#5234 |
||
---|---|---|
.. | ||
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. |