l7-order-list-widget
v2.1.4
Published
Listing all orders as well as orders filtered by customer id
Downloads
3
Readme
l7-order-list-widget
Listing all orders as well as orders filtered by customer id
Install
npm install --save l7-order-list-widget
Usage
import React, { Component } from 'react'
import OrderListWidget from 'l7-order-list-widget'
import 'l7-order-list-widget/dist/index.css'
class Example extends Component {
// to list all orders
render() {
return <OrderListWidget isRecentOrders={false} />
}
}
class Example extends Component {
// to list a customers order
render() {
return <OrderListWidget isRecentOrders={true} customerId={customerId} />
}
}
License
MIT © simonlit7