Skip to content

Commit

Permalink
fix(Call To Action): Make product optional (#809)
Browse files Browse the repository at this point in the history
* chore: make product prop optional in call to action

* Create stale-pots-sneeze.md

* Set product default
  • Loading branch information
pbortnick committed Nov 8, 2022
1 parent 67020b7 commit ba3fb84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-pots-sneeze.md
@@ -0,0 +1,5 @@
---
"@hashicorp/react-call-to-action": minor
---

fix(Call To Action): Make product prop optional
4 changes: 2 additions & 2 deletions packages/call-to-action/index.tsx
Expand Up @@ -22,7 +22,7 @@ interface CallToActionProps {
url: string
}[]
variant?: 'centered' | 'compact' | 'compactGrid' | 'links'
product: Products
product?: Products
theme?: 'light' | 'dark' | 'brand'
className?: string
}
Expand All @@ -32,7 +32,7 @@ function CallToAction({
content,
links,
variant = 'centered',
product,
product = 'hashicorp',
theme = 'light',
className,
}: CallToActionProps) {
Expand Down

1 comment on commit ba3fb84

@vercel
Copy link

@vercel vercel bot commented on ba3fb84 Nov 8, 2022

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.