Added config provider with default small text. Replcaed all datepicker components to add proper format. BOD-166 BOD-246

This commit is contained in:
Patrick Fic
2020-08-04 15:52:57 -07:00
parent 8590767e33
commit bdba1a2132
31 changed files with 329 additions and 247 deletions

View File

@@ -14,7 +14,7 @@ const VendorSearchSelect = (
if (value !== option && onChange) {
onChange(option);
}
}, [option, onChange]);
}, [value, option, onChange]);
return (
<Select
@@ -25,15 +25,16 @@ const VendorSearchSelect = (
width: 300,
}}
onChange={setOption}
optionFilterProp='name'
optionFilterProp="name"
onSelect={onSelect}
disabled={disabled || false}>
disabled={disabled || false}
>
{options
? options.map((o) => (
<Option key={o.id} value={o.id} name={o.name} discount={o.discount}>
<div style={{ display: "flex" }}>
{o.name}
<Tag color='green'>{`${o.discount * 100}%`}</Tag>
<Tag color="green">{`${o.discount * 100}%`}</Tag>
</div>
</Option>
))