diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-18 04:57:59 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-18 04:57:59 +0800 |
commit | 35cb769456d6b94c768b6ce3afd9535918aea0a1 (patch) | |
tree | 59422510e8c28d83fec5f9ee2c753d455f828b7f /packages/website/ts | |
parent | f7581d60da832440a78a76502cbf0c4f2306906b (diff) | |
download | dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.tar dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.tar.gz dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.tar.bz2 dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.tar.lz dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.tar.xz dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.tar.zst dexon-sol-tools-35cb769456d6b94c768b6ce3afd9535918aea0a1.zip |
prettify file
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/@next/pages/instant/select.tsx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/website/ts/@next/pages/instant/select.tsx b/packages/website/ts/@next/pages/instant/select.tsx index 422818f9f..1e428c9a1 100644 --- a/packages/website/ts/@next/pages/instant/select.tsx +++ b/packages/website/ts/@next/pages/instant/select.tsx @@ -20,9 +20,20 @@ export const Select: React.FunctionComponent<SelectProps> = ({ value, id, items, <Container> <StyledSelect id={id} onChange={onChange}> <option value="">{emptyText}</option> - {items.map((item, index) => <option key={`${id}-item-${index}`} value={item.value} selected={item.value === value} onClick={item.onClick}>{item.label}</option>)} + {items.map((item, index) => ( + <option + key={`${id}-item-${index}`} + value={item.value} + selected={item.value === value} + onClick={item.onClick} + > + {item.label} + </option> + ))} </StyledSelect> - <Caret width="12" height="7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 1L6 6 1 1" stroke="#666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></Caret> + <Caret width="12" height="7" fill="none" xmlns="http://www.w3.org/2000/svg"> + <path d="M11 1L6 6 1 1" stroke="#666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> + </Caret> </Container> ); }; |