Skip to content

Commit

Permalink
sidebar: show index as primary
Browse files Browse the repository at this point in the history
  • Loading branch information
NgocNhi123 committed Jun 26, 2024
1 parent 305f225 commit 7f36bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new-docs/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function generateSidebar(dirPath: string, parentDir: string): SidebarItem[] {
const fileName = entry.name.replace(".stories.mdx", "");
if (fileName === "index") {
items.unshift({
text: capitalize(fileName.replace(/-/g, " ")),
text: 'Primary',
link: parentDir,
});
} else {
Expand Down

0 comments on commit 7f36bc3

Please sign in to comment.