const scrollToFeaturedContent = () => { window.scrollTo(0, scrollToRef.current.offsetTop - 54); }; const onLordPick= () => { setNewsData(loadPick); setNewsType(0); if (isSticky) { scrollToFeaturedContent(); } };
const scrollToTransactionRef = () => window.scrollTo(0, transactionRef.current.offsetTop + 460);