mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 22:07:06 +02:00
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)
This commit is contained in:
@@ -3,7 +3,7 @@ import React, { useState } from "react";
|
||||
|
||||
interface IProps {
|
||||
initialValue: number;
|
||||
callback: (event: Event | React.SyntheticEvent<Element, Event>, newValue: number | number[]) => void;
|
||||
callback: (event: Event | React.SyntheticEvent, newValue: number | number[]) => void;
|
||||
step: number;
|
||||
min: number;
|
||||
max: number;
|
||||
@@ -15,7 +15,7 @@ interface IProps {
|
||||
export const OptionsSlider = (props: IProps): React.ReactElement => {
|
||||
const [value, setValue] = useState(props.initialValue);
|
||||
|
||||
const onChange = (_evt: Event, newValue: number | Array<number>): void => {
|
||||
const onChange = (_evt: Event, newValue: number | number[]): void => {
|
||||
if (typeof newValue === "number") setValue(newValue);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user