Skip to content

Commit

Permalink
Fix props table not being generated by Storybook for Badge component
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhmp committed Aug 24, 2021
1 parent f752869 commit 32185f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/store-ui/src/atoms/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface BadgeProps {
children?: ReactNode
}

function Badge(
const Badge = forwardRef<HTMLDivElement, BadgeProps>(function Badge(
{ testId = 'store-badge', children }: BadgeProps,
ref: ForwardedRef<HTMLDivElement>
) {
Expand All @@ -18,6 +18,6 @@ function Badge(
{children}
</div>
)
}
})

export default forwardRef<HTMLDivElement, BadgeProps>(Badge)
export default Badge

0 comments on commit 32185f3

Please sign in to comment.