Skip to content

Commit 8a127cb

Browse files
committed
fix: mount DailyCodingTip widget on the homepage
The widget was fully built (component, styles, localStorage persistence, refresh button) but was only wired into the Leaderboard page, not the homepage as the linked issue requested. Import and render DailyCodingTip on src/pages/index.tsx, directly below the header. Signed-off-by: aaniya22 <aaniyaatomar@gmail.com>
1 parent 90fa701 commit 8a127cb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/pages/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { TestimonialCarousel } from "../components/testimonials/TestimonialCarou
1414
import { CommunityStatsProvider } from "../lib/statsProvider";
1515
import { LandingCommunity } from "../components/Community";
1616
import FAQs from "../components/faqs/faqs";
17+
import DailyCodingTip from "../components/DailyCodingTip";
1718

1819
export default function Home(): ReactNode {
1920
const { siteConfig } = useDocusaurusContext();
@@ -68,6 +69,10 @@ export default function Home(): ReactNode {
6869
<Header />
6970
</div>
7071

72+
<div className="m-4">
73+
<DailyCodingTip />
74+
</div>
75+
7176
<div className="blog-carousel-section">
7277
<BlogCarousel />
7378
</div>

0 commit comments

Comments
 (0)