From 2103e786bc76a97f2053d6e1754ced3ade201365 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sun, 7 Sep 2025 20:16:25 -0400 Subject: [PATCH] fix missing imports, cleanup --- src/components/FantasyStatus.tsx | 11 +---------- src/components/RandomLyric.tsx | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/FantasyStatus.tsx b/src/components/FantasyStatus.tsx index 28d68e2..ac2cad5 100644 --- a/src/components/FantasyStatus.tsx +++ b/src/components/FantasyStatus.tsx @@ -2,8 +2,7 @@ import { useEffect, useState } from "react"; import PlayerCell from "./fantasy/PlayerCell"; import { NFLMatchupState, - NFLPlayer, - SleeperUsers, + SleeperUser, type NFLRosterState, type NFLState, } from "../utils/types"; @@ -26,10 +25,6 @@ export default function FantasyStatus() { const [opposingRoster, setOpposingRoster] = useState( null ); - const [nflState, setNflState] = useState(null); - // const [roster, setRoster] = useState(null); - // const [players, setPlayers] = useState(null); - // const [matchup, setMatchup] = useState(null); // fetch roster information useEffect(() => { @@ -58,7 +53,6 @@ export default function FantasyStatus() { PLAYERS_URL + "?players=" + oppMatchup.starters ).then((res) => res.json()); - setNflState(nflState); setPersonalRoster({ ...rosters.filter((v) => v.owner_id === USER_ID)[0], matchup: matchups[1], @@ -75,9 +69,6 @@ export default function FantasyStatus() { fetchData(); }, []); - useEffect(() => { - console.log(personalRoster, opposingRoster); - }, [personalRoster, opposingRoster]); return (
diff --git a/src/components/RandomLyric.tsx b/src/components/RandomLyric.tsx index f2d0fa5..2933f85 100644 --- a/src/components/RandomLyric.tsx +++ b/src/components/RandomLyric.tsx @@ -62,7 +62,6 @@ const RandomLyric: FC = ({ speed = 0.5 }) => { const getRandomLyric = () => { const randomNumber = Math.floor(Math.random() * lyrics.length); - console.log(randomNumber); setLyric(lyrics[randomNumber]); }; useEffect(() => {