Skip to content

Commit

Permalink
fix: nextjs active tab prop
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 31, 2020
1 parent 17aca88 commit 7ce6590
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/nextjs/pages/[doctype]/[...docid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ const DocPageTemplate: FC<DocPageProps> = ({
storyId,
type,
category,
activeTab,
}) => {
return (
<Layout docId={docId} storyId={storyId}>
<Layout docId={docId} storyId={storyId} activeTab={activeTab}>
<DocPage type={type} category={category} />
</Layout>
);
Expand Down
3 changes: 2 additions & 1 deletion examples/starter/pages/[doctype]/[...docid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ const DocPageTemplate: FC<DocPageProps> = ({
storyId,
type,
category,
activeTab,
}) => {
return (
<Layout docId={docId} storyId={storyId}>
<Layout docId={docId} storyId={storyId} activeTab={activeTab}>
<DocPage type={type} category={category} />
</Layout>
);
Expand Down
3 changes: 2 additions & 1 deletion examples/stories/src/tutorial/getting-started/ssg/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,10 @@ const DocPageTemplate: FC<DocPageProps> = ({
storyId,
type,
category,
activeTab,
}) => {
return (
<Layout docId={docId} storyId={storyId}>
<Layout docId={docId} storyId={storyId} activeTab={activeTab}>
<DocPage type={type} category={category} />
</Layout>
);
Expand Down

0 comments on commit 7ce6590

Please sign in to comment.