diff --git a/client/src/components/vendor-search-select/vendor-search-select.component.jsx b/client/src/components/vendor-search-select/vendor-search-select.component.jsx index 8e9d6b5c2..6236c8ad4 100644 --- a/client/src/components/vendor-search-select/vendor-search-select.component.jsx +++ b/client/src/components/vendor-search-select/vendor-search-select.component.jsx @@ -5,7 +5,7 @@ import PhoneNumberFormatter from "../../utils/PhoneFormatter"; const { Option } = Select; -//To be used as a form element only. +// To be used as a form element only. const VendorSearchSelect = ({ value, onChange, options, onSelect, disabled, preferredMake, showPhone }, ref) => { const [option, setOption] = useState(value); @@ -33,9 +33,25 @@ const VendorSearchSelect = ({ value, onChange, options, onSelect, disabled, pref if (!value || !options) return label; const discount = options?.find((o) => o.id === value)?.discount; return ( -
-
{label}
- +
+
+ {label} +
{discount && discount !== 0 ? {`${discount * 100}%`} : null}
); @@ -45,36 +61,67 @@ const VendorSearchSelect = ({ value, onChange, options, onSelect, disabled, pref optionFilterProp="name" onSelect={onSelect} disabled={disabled || false} - optionLabelProp={"name"} + optionLabelProp="name" > - {favorites - ? favorites.map((o) => ( -