more specific price seach should be working

This commit is contained in:
2018-08-14 23:36:09 -05:00
parent 4757abfff3
commit 5423b81c95
9 changed files with 157 additions and 17 deletions

View File

@@ -18,17 +18,20 @@ export class PriceListItem extends React.Component<IProps, IState> {
componentDidMount() {}
render() {
const { data } = this.props;
const { fullText, icon, priceInfo, typeLine } = this.props.data;
return (
<div className="pli">
<div className="pli" title={fullText}>
<div style={{ width: '100px' }}>
<img src={data.icon} className="pli__img" />
<img src={icon} className="pli__img" />
</div>
<div style={{ flex: 1 }}>
<div style={{ marginBottom: '10px' }}>
<b>{data.typeLine}</b>
<b>{typeLine}</b>
</div>
<div>
{priceInfo ? `${priceInfo.min || priceInfo.min_price} ${priceInfo.currency || priceInfo.currency_rec}` : ''}
</div>
<div>{data.priceInfo ? `${data.priceInfo.min_price} ${data.priceInfo.currency_rec}` : ''}</div>
</div>
</div>
);