Skip to content

Commit

Permalink
add rest props spread for using ProjectBadge in the OSS Banner context
Browse files Browse the repository at this point in the history
  • Loading branch information
cpresler committed Apr 19, 2024
1 parent a4c7267 commit dda6ab5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/kind-candles-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"formidable-oss-badges": patch
---

Enable ProjectBadge to accept additional props for use in OSS Banner - matching
FeaturedBadge"
2 changes: 2 additions & 0 deletions src/ProjectBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const ProjectBadge = (props: Props) => {
style,
isHoverable = true,
simple = false,
...rest
} = props
let baseY = BASE_Y
if (simple) {
Expand All @@ -64,6 +65,7 @@ const ProjectBadge = (props: Props) => {
viewBox="0 0 600 595"
className={clsx(isHoverable && styles.hoverableLogo, className)}
style={style}
{...rest}
>
<g fill="none" fillRule="evenodd">
<path
Expand Down

0 comments on commit dda6ab5

Please sign in to comment.