mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-17 11:42:29 +03:00
Fix
This commit is contained in:
parent
4a4b0365ab
commit
189bd6d16a
|
@ -5,11 +5,11 @@ import type { PokemonName } from '../../pokemon.data';
|
||||||
|
|
||||||
const intervalOptions = createListCollection({
|
const intervalOptions = createListCollection({
|
||||||
items: [
|
items: [
|
||||||
{ label: 'Off', value: 0 },
|
{ label: 'Off', value: '0' },
|
||||||
{ label: '3s', value: 3000 },
|
{ label: '3s', value: '3000' },
|
||||||
{ label: '5s', value: 5000 },
|
{ label: '5s', value: '5000' },
|
||||||
{ label: '10s', value: 10000 },
|
{ label: '10s', value: '10000' },
|
||||||
{ label: '1m', value: 60000 },
|
{ label: '1m', value: '60000' },
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -46,7 +46,9 @@ export function Pokemon({ name }: { name: PokemonName }) {
|
||||||
<Select.Root
|
<Select.Root
|
||||||
collection={intervalOptions}
|
collection={intervalOptions}
|
||||||
value={[pollingInterval.toString()]}
|
value={[pollingInterval.toString()]}
|
||||||
onValueChange={({ value }) => setPollingInterval(Number(value))}
|
onValueChange={({ value }) =>
|
||||||
|
setPollingInterval(Number(value[0]))
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<Select.HiddenSelect />
|
<Select.HiddenSelect />
|
||||||
<Select.Label>Polling interval</Select.Label>
|
<Select.Label>Polling interval</Select.Label>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user