Resolve search select.
This commit is contained in:
@@ -36,9 +36,8 @@ const VendorSearchSelect = (
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
labelRender={({ label, value, ...rest }) => {
|
labelRender={({ label, value, ...rest }) => {
|
||||||
console.log(value, label, rest);
|
if (!value || !options) return label;
|
||||||
if (!value) return label;
|
const discount = options?.find((o) => o.id === value)?.discount;
|
||||||
const discount = options.find((o) => o.id === value)?.discount;
|
|
||||||
return (
|
return (
|
||||||
<div className="imex-flex-row" style={{ width: '100%' }}>
|
<div className="imex-flex-row" style={{ width: '100%' }}>
|
||||||
<div style={{ flex: 1 }}>{label}</div>
|
<div style={{ flex: 1 }}>{label}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user