fetch item prices - throttle end points with promise queue

This commit is contained in:
2018-08-28 21:45:46 -05:00
parent 97acc0d4fa
commit 7ca8606284
17 changed files with 241 additions and 64 deletions

View File

@@ -1,14 +1,14 @@
import React from 'react';
import { PriceListItem } from '../price-list-item/price-list-item';
// import React from 'react';
// import { PriceListItem } from '../price-list-item/price-list-item';
interface IProps {
data: any[];
}
// interface IProps {
// data: any[];
// }
export class PriceList extends React.Component<IProps, any> {
constructor(props: IProps) {
super(props);
}
// export class PriceList extends React.Component<IProps, any> {
// constructor(props: IProps) {
// super(props);
// }
render = () => this.props.data.map((value, index) => <PriceListItem data={value} key={index} />);
}
// render = () => this.props.data.map((value, index) => <PriceListItem data={value} key={index} />);
// }