mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Merge branch 'master' into inspector-fix-z-index
This commit is contained in:
commit
7edce437fc
|
@ -4,8 +4,17 @@ import Select from '../Select';
|
|||
import Slider from '../Slider';
|
||||
|
||||
/* eslint-disable react/prop-types */
|
||||
const SelectWidget: Widget = ({ options, ...rest }) => (
|
||||
<Select options={options.enumOptions} {...rest} />
|
||||
const SelectWidget: Widget = ({ options, onChange, value, ...rest }) => (
|
||||
<Select
|
||||
options={options.enumOptions}
|
||||
onChange={(option: { value: string }) => {
|
||||
onChange(option.value);
|
||||
}}
|
||||
value={(options.enumOptions as { value: string }[]).find(
|
||||
(option) => option.value === value
|
||||
)}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
|
||||
const RangeWidget: Widget = (({
|
||||
|
|
Loading…
Reference in New Issue
Block a user