mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 11:29:19 +01:00
rm any
This commit is contained in:
@ -2,7 +2,7 @@ import { Slider, Tooltip, Typography, Box } from "@mui/material";
|
||||
import React, { useState } from "react";
|
||||
|
||||
interface IProps {
|
||||
initialValue: any;
|
||||
initialValue: number;
|
||||
callback: (event: any, newValue: number | number[]) => void;
|
||||
step: number;
|
||||
min: number;
|
||||
@ -16,7 +16,7 @@ export const OptionsSlider = (props: IProps): React.ReactElement => {
|
||||
const [value, setValue] = useState(props.initialValue);
|
||||
|
||||
const onChange = (_evt: Event, newValue: number | Array<number>): void => {
|
||||
setValue(newValue);
|
||||
if (typeof newValue === "number") setValue(newValue);
|
||||
};
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user