Skip to content

Commit

Permalink
fix(docs-page): make certain docs-page types optional (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Sep 29, 2021
1 parent b0ebe05 commit 77e5712
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-dingos-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/react-docs-page': patch
---

Adjust prop interface to make showVersionSelect, additionalComponents, and showEditPage optional
6 changes: 3 additions & 3 deletions packages/docs-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ const DocsPageWrapper: FunctionComponent<DocsPageWrapperProps> = ({
export interface DocsPageProps {
product: { name: string; slug: string }
baseRoute: string
showEditPage: boolean
showVersionSelect: boolean
additionalComponents: MDXProviderComponentsProp
showEditPage?: boolean
showVersionSelect?: boolean
additionalComponents?: MDXProviderComponentsProp
staticProps: {
mdxSource: MDXRemoteSerializeResult
frontMatter: {
Expand Down

1 comment on commit 77e5712

@vercel
Copy link

@vercel vercel bot commented on 77e5712 Sep 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.