File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,29 @@ import Feed from '@/components/feed/Feed'
55import Footer from '@/components/footer/Footer'
66import Hero from '@/components/hero/Hero'
77import Navigation from '@/components/navigation/Navigation'
8+ import Users from '@/components/users/Users'
89import { ContextTopTenPosts } from '@/context/ContextTopTenPosts'
10+ import { ContextTopUsers } from '@/context/ContextTopUsers'
911import { useFocusTrap } from '@/hooks/useFocusTrap'
1012import { useSetWindowScrollY } from '@/hooks/useSetWindowScrollY'
1113
1214export default function Home ( ) {
1315 const topTenPostsRef = useRef < HTMLDivElement | null > ( null )
16+ const topUsersRef = useRef < HTMLDivElement | null > ( null )
1417
1518 useFocusTrap ( )
1619 useSetWindowScrollY ( )
1720
1821 return (
1922 < div className = "min-h-svh flex flex-col items-center justify-start bg-gradient-to-b from-stone-700 to-stone-800" >
2023 < ContextTopTenPosts . Provider value = { topTenPostsRef } >
21- < Navigation />
22- < Hero />
23- < Feed />
24- < Footer />
24+ < ContextTopUsers . Provider value = { topUsersRef } >
25+ < Navigation />
26+ < Hero />
27+ < Users />
28+ < Feed />
29+ < Footer />
30+ </ ContextTopUsers . Provider >
2531 </ ContextTopTenPosts . Provider >
2632 </ div >
2733 )
You can’t perform that action at this time.
0 commit comments