fetch item prices - throttle end points with promise queue
This commit is contained in:
@@ -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} />);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user