Skip to content

Commit 9d76e7b

Browse files
committed
refactor(badge): ♻️ remove ? from props because we are using Partial when using the type
1 parent ed3298c commit 9d76e7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/badge/Badge.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,31 @@ export interface BadgeProps extends BoxProps {
2121
* How large should the badge be?
2222
* @default md
2323
*/
24-
size?: BadgeSizes;
24+
size: BadgeSizes;
2525
/**
2626
* How the badge should be themed?
2727
* @default base
2828
*/
29-
themeColor?: BadgeTheme;
29+
themeColor: BadgeTheme;
3030
/**
3131
* How the badge should look?
3232
* @default solid
3333
*/
34-
variant?: BadgeVariants;
34+
variant: BadgeVariants;
3535
/**
3636
* The Text style of the Badge component.
3737
* @default {}
3838
*/
39-
textProps?: TextProps;
39+
textProps: TextProps;
4040
/**
4141
* If added, the Badge will show an icon before the tag's text.
4242
*/
43-
prefix?: RenderPropType;
43+
prefix: RenderPropType;
4444
}
4545

4646
const RNBadge: React.FC<Partial<BadgeProps>> = forwardRef<
4747
typeof Box,
48-
BadgeProps
48+
Partial<BadgeProps>
4949
>(
5050
(
5151
{

0 commit comments

Comments
 (0)