mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
lint
This commit is contained in:
parent
73d0dd98f2
commit
f701cbffa7
@ -21,7 +21,6 @@ import { numeralWrapper } from "../../ui/numeralFormat";
|
|||||||
import { Money } from "../../ui/React/Money";
|
import { Money } from "../../ui/React/Money";
|
||||||
|
|
||||||
import { dialogBoxCreate } from "../../ui/React/DialogBox";
|
import { dialogBoxCreate } from "../../ui/React/DialogBox";
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import TextField from "@mui/material/TextField";
|
import TextField from "@mui/material/TextField";
|
||||||
import MenuItem from "@mui/material/MenuItem";
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
@ -76,7 +75,7 @@ export function StockTicker(props: IProps): React.ReactElement {
|
|||||||
}>({
|
}>({
|
||||||
text: "",
|
text: "",
|
||||||
placeText: "",
|
placeText: "",
|
||||||
place: (n: number) => false,
|
place: () => false,
|
||||||
});
|
});
|
||||||
|
|
||||||
function getBuyTransactionCostContent(): JSX.Element | null {
|
function getBuyTransactionCostContent(): JSX.Element | null {
|
||||||
|
@ -40,7 +40,6 @@ type IProps = {
|
|||||||
export function StockTickers(props: IProps): React.ReactElement {
|
export function StockTickers(props: IProps): React.ReactElement {
|
||||||
const setRerender = useState(false)[1];
|
const setRerender = useState(false)[1];
|
||||||
const [tickerDisplayMode, setTickerDisplayMode] = useState(TickerDisplayMode.AllStocks);
|
const [tickerDisplayMode, setTickerDisplayMode] = useState(TickerDisplayMode.AllStocks);
|
||||||
const [watchlistFilter, setWatchlistFilter] = useState("");
|
|
||||||
const [watchlistSymbols, setWatchlistSymbols] = useState<string[]>([]);
|
const [watchlistSymbols, setWatchlistSymbols] = useState<string[]>([]);
|
||||||
|
|
||||||
function changeDisplayMode(): void {
|
function changeDisplayMode(): void {
|
||||||
@ -55,8 +54,6 @@ export function StockTickers(props: IProps): React.ReactElement {
|
|||||||
const watchlist = e.target.value;
|
const watchlist = e.target.value;
|
||||||
const sanitizedWatchlist = watchlist.replace(/\s/g, "");
|
const sanitizedWatchlist = watchlist.replace(/\s/g, "");
|
||||||
|
|
||||||
setWatchlistFilter(watchlist);
|
|
||||||
|
|
||||||
if (sanitizedWatchlist !== "") {
|
if (sanitizedWatchlist !== "") {
|
||||||
setWatchlistSymbols(sanitizedWatchlist.split(","));
|
setWatchlistSymbols(sanitizedWatchlist.split(","));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user