diff --git a/src/GameOptions/ui/CurrentOptionsPage.tsx b/src/GameOptions/ui/CurrentOptionsPage.tsx index ff154f768..f34245a3b 100644 --- a/src/GameOptions/ui/CurrentOptionsPage.tsx +++ b/src/GameOptions/ui/CurrentOptionsPage.tsx @@ -70,7 +70,7 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => { <> { /> { /> { /> { /> { /> void; step: number; min: number; @@ -13,14 +13,21 @@ interface IProps { } export const OptionsSlider = (props: IProps): React.ReactElement => { + const [value, setValue] = useState(props.initialValue); + + const onChange = (_evt: Event, newValue: number | Array): void => { + setValue(newValue); + }; + return ( {props.tooltip}}> {props.label} props.callback(evt, value)} step={props.step} min={props.min} max={props.max}