Skip to content

Commit

Permalink
fix: Reaction Button에서 count prop 제공하지 않는 경우 슬롯 렌더링하지 않음
Browse files Browse the repository at this point in the history
  • Loading branch information
te6-in committed Jan 14, 2025
1 parent ca65c80 commit 24c3902
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/registry/ui/reaction-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export const ReactionButton = React.forwardRef<
<SeedReactionButton.Root ref={ref} loading={loading} {...otherProps}>
{prefixIcon && <SeedReactionButton.PrefixIcon svg={prefixIcon} />}
<SeedReactionButton.Label>{children}</SeedReactionButton.Label>
<SeedReactionButton.Count>{count}</SeedReactionButton.Count>
{count !== undefined && (
<SeedReactionButton.Count>{count}</SeedReactionButton.Count>
)}
{loading ? (
<SeedReactionButton.ProgressIndicator>
<ProgressCircle size="inherit" tone="inherit" />
Expand Down

0 comments on commit 24c3902

Please sign in to comment.