Skip to content

Commit

Permalink
fix(website): hide version select on /plugins & /tools (#12145)
Browse files Browse the repository at this point in the history
* fix(website/plugins): display version select

* fix: hide version select on `/tools` + `/plugins`
thiskevinwang authored Feb 28, 2022
1 parent 1cb00e8 commit 636345a
Showing 5 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion website/pages/api-docs/[[...page]].jsx
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ export default function DocsLayout(props) {
product={{ name: productName, slug: productSlug }}
baseRoute={basePath}
staticProps={props}
showVersionSelect={process.env.ENABLE_VERSIONED_DOCS === 'true'}
/>
)
}
1 change: 0 additions & 1 deletion website/pages/docs/[[...page]].jsx
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ export default function DocsLayout(props) {
baseRoute={basePath}
staticProps={props}
additionalComponents={additionalComponents}
showVersionSelect={process.env.ENABLE_VERSIONED_DOCS === 'true'}
/>
)
}
1 change: 0 additions & 1 deletion website/pages/intro/[[...page]].jsx
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ export default function DocsLayout(props) {
product={{ name: productName, slug: productSlug }}
baseRoute={basePath}
staticProps={props}
showVersionSelect={process.env.ENABLE_VERSIONED_DOCS === 'true'}
/>
)
}
1 change: 1 addition & 0 deletions website/pages/plugins/[[...page]].tsx
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ export default function DocsLayout(props) {
product={{ name: productName, slug: productSlug }}
baseRoute={basePath}
staticProps={props}
showVersionSelect={false}
/>
)
}
1 change: 1 addition & 0 deletions website/pages/tools/[[...page]].tsx
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ export default function DocsLayout(props) {
product={{ name: productName, slug: productSlug }}
baseRoute={basePath}
staticProps={props}
showVersionSelect={false}
/>
)
}

0 comments on commit 636345a

Please sign in to comment.