Skip to content

Commit

Permalink
remove deprecated developmental code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydrakesmith committed Dec 27, 2024
1 parent 3113a24 commit e7e4eac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
6 changes: 1 addition & 5 deletions src/components/Futa/SearchableTicker/SearchableTicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
16 changes: 1 addition & 15 deletions src/components/Futa/SearchableTicker/TickerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -177,19 +176,6 @@ export default function TickerItem(props: PropsIF) {
return (
<Link
ref={(el) => (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,
Expand Down

0 comments on commit e7e4eac

Please sign in to comment.