Skip to content

Commit 4c33aff

Browse files
committed
explicit typing
1 parent aec1b75 commit 4c33aff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/page-primitives/src/badge.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ export const Badge: React.FC<BadgeProps> = ({
4646
style={{
4747
...style,
4848
backgroundColor:
49-
style.backgroundColor || theme?.colors?.secondary,
50-
color: style.color || theme?.colors?.buttonText,
49+
(style as React.CSSProperties).backgroundColor ||
50+
theme?.colors?.secondary,
51+
color:
52+
(style as React.CSSProperties).color ||
53+
theme?.colors?.buttonText,
5154
borderColor: theme?.colors?.border,
5255
}}
5356
{...props}

0 commit comments

Comments
 (0)