From 7ef7f9feee2840fa2598f67849fe3aa2b6ca18d5 Mon Sep 17 00:00:00 2001 From: swve Date: Wed, 9 Jul 2025 15:56:20 +0200 Subject: [PATCH] feat: add chapter index badge to ActivityChapterDropdown for improved navigation --- .../components/Pages/Activity/ActivityChapterDropdown.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/components/Pages/Activity/ActivityChapterDropdown.tsx b/apps/web/components/Pages/Activity/ActivityChapterDropdown.tsx index a2bfff20..01a2bdaa 100644 --- a/apps/web/components/Pages/Activity/ActivityChapterDropdown.tsx +++ b/apps/web/components/Pages/Activity/ActivityChapterDropdown.tsx @@ -93,11 +93,13 @@ export default function ActivityChapterDropdown(props: ActivityChapterDropdownPr
- {props.course.chapters.map((chapter: any) => ( + {props.course.chapters.map((chapter: any, index: number) => (
- +
+ {index + 1} +
{chapter.name}