From f701cbffa7e8193b0015f37bc76fdae9876d3473 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Thu, 30 Sep 2021 18:57:44 -0400 Subject: [PATCH] lint --- src/StockMarket/ui/StockTicker.tsx | 3 +-- src/StockMarket/ui/StockTickers.tsx | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/StockMarket/ui/StockTicker.tsx b/src/StockMarket/ui/StockTicker.tsx index 7fb6f8e22..c17271670 100644 --- a/src/StockMarket/ui/StockTicker.tsx +++ b/src/StockMarket/ui/StockTicker.tsx @@ -21,7 +21,6 @@ import { numeralWrapper } from "../../ui/numeralFormat"; import { Money } from "../../ui/React/Money"; import { dialogBoxCreate } from "../../ui/React/DialogBox"; -import Typography from "@mui/material/Typography"; import Box from "@mui/material/Box"; import TextField from "@mui/material/TextField"; import MenuItem from "@mui/material/MenuItem"; @@ -76,7 +75,7 @@ export function StockTicker(props: IProps): React.ReactElement { }>({ text: "", placeText: "", - place: (n: number) => false, + place: () => false, }); function getBuyTransactionCostContent(): JSX.Element | null { diff --git a/src/StockMarket/ui/StockTickers.tsx b/src/StockMarket/ui/StockTickers.tsx index bf44ea952..dd4ceb2ad 100644 --- a/src/StockMarket/ui/StockTickers.tsx +++ b/src/StockMarket/ui/StockTickers.tsx @@ -40,7 +40,6 @@ type IProps = { export function StockTickers(props: IProps): React.ReactElement { const setRerender = useState(false)[1]; const [tickerDisplayMode, setTickerDisplayMode] = useState(TickerDisplayMode.AllStocks); - const [watchlistFilter, setWatchlistFilter] = useState(""); const [watchlistSymbols, setWatchlistSymbols] = useState([]); function changeDisplayMode(): void { @@ -55,8 +54,6 @@ export function StockTickers(props: IProps): React.ReactElement { const watchlist = e.target.value; const sanitizedWatchlist = watchlist.replace(/\s/g, ""); - setWatchlistFilter(watchlist); - if (sanitizedWatchlist !== "") { setWatchlistSymbols(sanitizedWatchlist.split(",")); } else {