Skip to content

Commit 523d749

Browse files
committed
fix: review
1 parent 0b2896a commit 523d749

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/tutorialkit.dev/src/content/docs/guides/creating-content.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This structure is reflected in the directory structure of your TutorialKit proje
3737

3838
Navigate into one of these folders to see another folder that represents a **chapter**. Inside the chapter folder, you will find one or more **lesson** folders.
3939

40-
You can also omit parts and chapters, if your tutorial doesn't need that deep hierarchy.
40+
You can also omit parts or chapters such that you only have lessons or only lessons and parts. Here are a few examples:
4141

4242
<Tabs>
4343
<TabItem label="Structure">

packages/react/src/Nav.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function NavListComponent({
129129
<Accordion.Root asChild collapsible type="single" defaultValue={`${level}-${activeItems[level]}`}>
130130
<ul className={classNames(className)}>
131131
{items.map((item, index) => (
132-
<NavListItem key={index} {...item} index={index} level={level} activeItems={activeItems} i18n={i18n} />
132+
<NavListItem key={item.id} {...item} index={index} level={level} activeItems={activeItems} i18n={i18n} />
133133
))}
134134
</ul>
135135
</Accordion.Root>
@@ -171,11 +171,11 @@ function NavListItem({ level, type, index, i18n, activeItems, id, title, href, s
171171

172172
<Accordion.Content className={navStyles.AccordionContent}>
173173
<NavListComponent
174-
className="mt-1.5 pl-4.5"
174+
className="mt-1.5 pl-4.5"
175175
items={sections}
176176
activeItems={activeItems}
177177
i18n={i18n}
178-
level={1 + level}
178+
level={level + 1}
179179
/>
180180
</Accordion.Content>
181181
</li>

0 commit comments

Comments
 (0)