diff options
Diffstat (limited to 'packages/website/ts/@next/pages/instant/select.tsx')
-rw-r--r-- | packages/website/ts/@next/pages/instant/select.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/@next/pages/instant/select.tsx b/packages/website/ts/@next/pages/instant/select.tsx index ae2a07b3d..422818f9f 100644 --- a/packages/website/ts/@next/pages/instant/select.tsx +++ b/packages/website/ts/@next/pages/instant/select.tsx @@ -12,12 +12,13 @@ interface SelectProps { id: string; items: SelectItemConfig[]; emptyText?: string; + onChange?: () => void; } -export const Select: React.FunctionComponent<SelectProps> = ({ value, id, items, emptyText }) => { +export const Select: React.FunctionComponent<SelectProps> = ({ value, id, items, emptyText, onChange }) => { return ( <Container> - <StyledSelect id={id}> + <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>)} </StyledSelect> |