File tree Expand file tree Collapse file tree 4 files changed +0
-36
lines changed Expand file tree Collapse file tree 4 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,13 @@ import { ContextQuote } from '@/context/ContextQuote'
1111import { ContextTopTenPosts } from '@/context/ContextTopTenPosts'
1212import { ContextTopUsers } from '@/context/ContextTopUsers'
1313import { useFocusTrap } from '@/hooks/useFocusTrap'
14- import { useSetWindowScrollY } from '@/hooks/useSetWindowScrollY'
1514
1615export default function Home ( ) {
1716 const quoteRef = useRef < HTMLQuoteElement > ( null )
1817 const topTenPostsRef = useRef < HTMLDivElement | null > ( null )
1918 const topUsersRef = useRef < HTMLDivElement | null > ( null )
2019
2120 useFocusTrap ( )
22- useSetWindowScrollY ( )
2321
2422 return (
2523 < div className = "min-h-svh flex flex-col items-center justify-start bg-gradient-to-b from-stone-700 to-stone-800" >
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import fetchFeedItems from '@/api/fetchFeedItems'
2424import { ContextTopTenPosts } from '@/context/ContextTopTenPosts'
2525import { FeedItemsType } from '@/types/types'
2626import { getItemFromSessionStorage } from '@/utils/getItemFromSessionStorage'
27- import { getWindowScrollY } from '@/utils/getWindowScrollY'
2827
2928const Feed = ( ) => {
3029 const contextTopTenPosts = useContext ( ContextTopTenPosts )
@@ -56,8 +55,6 @@ const Feed = () => {
5655
5756 if ( ! parsedStorageData ?. feedItems ?. length ) {
5857 loadMoreItems ( )
59- } else {
60- getWindowScrollY ( )
6158 }
6259 } , [ loadMoreItems ] )
6360
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments