Skip to content

Commit

Permalink
feat: update ts type to accept ReactNode (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstaley committed Mar 24, 2023
1 parent ee955a7 commit ab830b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-seahorses-approve.md
@@ -0,0 +1,5 @@
---
'@hashicorp/react-call-to-action': minor
---

Update TypeScript type to accept ReactNode
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/call-to-action/index.tsx
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: MPL-2.0
*/

import type { ReactNode } from 'react'
import Button from '@hashicorp/react-button'
import type { Products } from '@hashicorp/platform-product-meta'
import classNames from 'classnames'
Expand All @@ -20,7 +21,7 @@ const stylesDict = {

interface CallToActionProps {
heading?: string
content?: string
content?: ReactNode
links?: {
type?: 'inbound' | 'outbound' | 'anchor' | 'download'
text: string
Expand Down

1 comment on commit ab830b8

@vercel
Copy link

@vercel vercel bot commented on ab830b8 Mar 24, 2023

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.