IO-1748 Remove show phone on vendor search select in report cente.r
This commit is contained in:
@@ -73,6 +73,7 @@ export function PartsOrderModalComponent({
|
|||||||
options={vendorList}
|
options={vendorList}
|
||||||
disabled={isReturn}
|
disabled={isReturn}
|
||||||
preferredMake={preferredMake}
|
preferredMake={preferredMake}
|
||||||
|
showPhone
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const { Option } = Select;
|
|||||||
//To be used as a form element only.
|
//To be used as a form element only.
|
||||||
|
|
||||||
const VendorSearchSelect = (
|
const VendorSearchSelect = (
|
||||||
{ value, onChange, options, onSelect, disabled, preferredMake },
|
{ value, onChange, options, onSelect, disabled, preferredMake, showPhone },
|
||||||
ref
|
ref
|
||||||
) => {
|
) => {
|
||||||
const [option, setOption] = useState(value);
|
const [option, setOption] = useState(value);
|
||||||
@@ -54,7 +54,7 @@ const VendorSearchSelect = (
|
|||||||
<div style={{ flex: 1 }}>{o.name}</div>
|
<div style={{ flex: 1 }}>{o.name}</div>
|
||||||
<Space style={{ marginLeft: "1rem" }}>
|
<Space style={{ marginLeft: "1rem" }}>
|
||||||
<HeartOutlined style={{ color: "red" }} />
|
<HeartOutlined style={{ color: "red" }} />
|
||||||
{o.phone && (
|
{o.phone && showPhone && (
|
||||||
<PhoneNumberFormatter>{o.phone}</PhoneNumberFormatter>
|
<PhoneNumberFormatter>{o.phone}</PhoneNumberFormatter>
|
||||||
)}
|
)}
|
||||||
{o.discount && o.discount !== 0 ? (
|
{o.discount && o.discount !== 0 ? (
|
||||||
@@ -72,7 +72,7 @@ const VendorSearchSelect = (
|
|||||||
<div style={{ flex: 1 }}>{o.name}</div>
|
<div style={{ flex: 1 }}>{o.name}</div>
|
||||||
|
|
||||||
<Space style={{ marginLeft: "1rem" }}>
|
<Space style={{ marginLeft: "1rem" }}>
|
||||||
{o.phone && (
|
{o.phone && showPhone && (
|
||||||
<PhoneNumberFormatter>{o.phone}</PhoneNumberFormatter>
|
<PhoneNumberFormatter>{o.phone}</PhoneNumberFormatter>
|
||||||
)}
|
)}
|
||||||
{o.discount && o.discount !== 0 ? (
|
{o.discount && o.discount !== 0 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user