Skip to content

Commit 03ed73b

Browse files
top users
1 parent 815d699 commit 03ed73b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/app/page.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,29 @@ import Feed from '@/components/feed/Feed'
55
import Footer from '@/components/footer/Footer'
66
import Hero from '@/components/hero/Hero'
77
import Navigation from '@/components/navigation/Navigation'
8+
import Users from '@/components/users/Users'
89
import { ContextTopTenPosts } from '@/context/ContextTopTenPosts'
10+
import { ContextTopUsers } from '@/context/ContextTopUsers'
911
import { useFocusTrap } from '@/hooks/useFocusTrap'
1012
import { useSetWindowScrollY } from '@/hooks/useSetWindowScrollY'
1113

1214
export 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
)

0 commit comments

Comments
 (0)