Added vendor search in report center IO-688

This commit is contained in:
Patrick Fic
2021-02-22 13:54:40 -08:00
parent 639cf20941
commit 02a274b8c9
6 changed files with 138 additions and 14 deletions

View File

@@ -50,9 +50,11 @@ const VendorSearchSelect = (
<Col span={4}>
<HeartOutlined />
</Col>
<Col span={4}>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</Col>
{o.discount && (
<Col span={4}>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</Col>
)}
</Row>
</Option>
))
@@ -62,9 +64,11 @@ const VendorSearchSelect = (
<Option key={o.id} value={o.id} name={o.name} discount={o.discount}>
<Row>
<Col span={20}>{o.name}</Col>
<Col span={4}>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</Col>
{o.discount && (
<Col span={4}>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</Col>
)}
</Row>
</Option>
))