|
|
|
@ -5,7 +5,7 @@ import { publicApi } from "../../redux/actions"; |
|
|
|
|
//assets
|
|
|
|
|
import bookImage from "../../assets/images/book-mini.svg"; |
|
|
|
|
|
|
|
|
|
function Orders({ orders, headerOptions, setHeaderOptions }) { |
|
|
|
|
function Orders({ orders = [], headerOptions, setHeaderOptions }) { |
|
|
|
|
React.useEffect(() => { |
|
|
|
|
setHeaderOptions(headerOptions); |
|
|
|
|
}, []); |
|
|
|
@ -27,32 +27,3 @@ const mapDispatchToProps = { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Orders); |
|
|
|
|
|
|
|
|
|
Orders.defaultProps = { |
|
|
|
|
orders: [ |
|
|
|
|
{ |
|
|
|
|
number: "535353523653", |
|
|
|
|
receiveCode: "300031", |
|
|
|
|
status: 2, |
|
|
|
|
items: [bookImage, bookImage, bookImage, bookImage], |
|
|
|
|
date: "1400/1/12", |
|
|
|
|
cost: "1.240.000", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
number: "535353523653", |
|
|
|
|
receiveCode: "300031", |
|
|
|
|
status: 3, |
|
|
|
|
items: [bookImage, bookImage, bookImage], |
|
|
|
|
date: "1400/1/12", |
|
|
|
|
cost: "1.240.000", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
number: "535353523653", |
|
|
|
|
receiveCode: "300031", |
|
|
|
|
status: 4, |
|
|
|
|
items: [bookImage, bookImage, bookImage], |
|
|
|
|
date: "1400/1/12", |
|
|
|
|
cost: "1.240.000", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|