diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-19 06:11:29 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-19 06:11:29 +0800 |
commit | e10b30886ff0c3be4ef5f91e64107c79c9074725 (patch) | |
tree | 580be35c0f718b72d478fac632d388b9f15c4554 | |
parent | 441b5ac6f1d597f6a6ee32f672c46f2cdac03dbf (diff) | |
download | dexon-sol-tools-e10b30886ff0c3be4ef5f91e64107c79c9074725.tar.gz dexon-sol-tools-e10b30886ff0c3be4ef5f91e64107c79c9074725.tar.zst dexon-sol-tools-e10b30886ff0c3be4ef5f91e64107c79c9074725.zip |
includeEmpty -> shouldIncludeEmpty
-rw-r--r-- | packages/website/ts/@next/pages/instant/config_generator.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/instant/select.tsx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/website/ts/@next/pages/instant/config_generator.tsx b/packages/website/ts/@next/pages/instant/config_generator.tsx index a1263da58..d4497ac92 100644 --- a/packages/website/ts/@next/pages/instant/config_generator.tsx +++ b/packages/website/ts/@next/pages/instant/config_generator.tsx @@ -65,7 +65,7 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps, Confi <Container minWidth="350px"> <ConfigGeneratorSection title="Liquidity Source"> <Select - includeEmpty={false} + shouldIncludeEmpty={false} id="" value={value.orderSource} items={this._generateItems()} diff --git a/packages/website/ts/@next/pages/instant/select.tsx b/packages/website/ts/@next/pages/instant/select.tsx index f5b5e60c8..d4146cfb0 100644 --- a/packages/website/ts/@next/pages/instant/select.tsx +++ b/packages/website/ts/@next/pages/instant/select.tsx @@ -13,21 +13,21 @@ interface SelectProps { items: SelectItemConfig[]; emptyText?: string; onChange?: (ev: React.ChangeEvent<HTMLSelectElement>) => void; - includeEmpty: boolean; + shouldIncludeEmpty: boolean; } export const Select: React.FunctionComponent<SelectProps> = ({ value, id, items, - includeEmpty, + shouldIncludeEmpty, emptyText, onChange, }) => { return ( <Container> <StyledSelect id={id} onChange={onChange}> - {includeEmpty && <option value="">{emptyText}</option>} + {shouldIncludeEmpty && <option value="">{emptyText}</option>} {items.map((item, index) => ( <option key={`${id}-item-${index}`} @@ -48,7 +48,7 @@ export const Select: React.FunctionComponent<SelectProps> = ({ Select.defaultProps = { emptyText: 'Select...', - includeEmpty: true, + shouldIncludeEmpty: true, }; const Container = styled.div` |