From e7e4eacedf086abea24fd1325b587cfd550df93d Mon Sep 17 00:00:00 2001 From: Emily Drake Smith Date: Fri, 27 Dec 2024 12:14:53 -0500 Subject: [PATCH] remove deprecated developmental code --- .../Futa/SearchableTicker/SearchableTicker.tsx | 6 +----- .../Futa/SearchableTicker/TickerItem.tsx | 16 +--------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/components/Futa/SearchableTicker/SearchableTicker.tsx b/src/components/Futa/SearchableTicker/SearchableTicker.tsx index cc8f7e8284..6ba0d3d50f 100644 --- a/src/components/Futa/SearchableTicker/SearchableTicker.tsx +++ b/src/components/Futa/SearchableTicker/SearchableTicker.tsx @@ -228,17 +228,13 @@ export default function SearchableTicker(props: propsIF) { }, [diffHashSig(filteredData)]); const tickerItemRefs = useRef<{ [key: string]: HTMLDivElement | null }>({}); - // useEffect(() => console.log(tickerItemRefs.current), [tickerItemRefs.current]); - console.log(tickerItemRefs.current); + useEffect(() => { if ( hoveredTicker && tickerItemRefs.current[hoveredTicker] && !isMouseEnter ) { - // tickerItemRefs.current[hoveredTicker]?.scrollIntoView({ - // behavior: 'smooth', - // }); const itemRef = tickerItemRefs.current[hoveredTicker]; if (itemRef && containerRef.current) { containerRef.current.scrollTo({ diff --git a/src/components/Futa/SearchableTicker/TickerItem.tsx b/src/components/Futa/SearchableTicker/TickerItem.tsx index a48f05061a..2e76788178 100644 --- a/src/components/Futa/SearchableTicker/TickerItem.tsx +++ b/src/components/Futa/SearchableTicker/TickerItem.tsx @@ -38,8 +38,7 @@ export default function TickerItem(props: PropsIF) { useRefTicker, } = props; - const { accountData, hoveredTicker, setHoveredTicker } = - useContext(AuctionsContext); + const { accountData, setHoveredTicker } = useContext(AuctionsContext); const { ticker, @@ -177,19 +176,6 @@ export default function TickerItem(props: PropsIF) { return ( (useRefTicker.current[ticker] = el)} - // className={`${styles.tickerItemContainer} ${ - // auction?.ticker === selectedTicker && !isAccount - // ? styles.active - // : '' - // } - // ${ - // auction?.ticker === hoveredTicker && - // hoveredTicker !== selectedTicker && - // !isAccount - // ? styles.hoverActive - // : '' - // } - // `} className={[ // spacing and visual arrangement styles styles.ticker_item,