aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/pages/instant/select.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-12-20 00:18:17 +0800
committerGitHub <noreply@github.com>2018-12-20 00:18:17 +0800
commita7f847bf3e693a275b0aa71bcdb12d947b445175 (patch)
tree314c9d1899070b8d8a35c7df3b2fd0a9f214268e /packages/website/ts/@next/pages/instant/select.tsx
parent59d7efa78af41a91617b5a1f253a0f7e17553dca (diff)
parent0eef07307eb31fe3d72cb26634f102ad6115fccb (diff)
downloaddexon-sol-tools-a7f847bf3e693a275b0aa71bcdb12d947b445175.tar.gz
dexon-sol-tools-a7f847bf3e693a275b0aa71bcdb12d947b445175.tar.zst
dexon-sol-tools-a7f847bf3e693a275b0aa71bcdb12d947b445175.zip
Merge pull request #1457 from 0xProject/feature/website/0x-org-linting
[website] 0x org linting and prettier
Diffstat (limited to 'packages/website/ts/@next/pages/instant/select.tsx')
-rw-r--r--packages/website/ts/@next/pages/instant/select.tsx8
1 files changed, 4 insertions, 4 deletions
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`