From 111e3e0c0f3c6051a214265f609043ae94569c99 Mon Sep 17 00:00:00 2001 From: Takahiro Sugiura Date: Sat, 3 Apr 2021 00:26:54 +0900 Subject: [PATCH] fix(badge): define prop visible as optional (#2622) Default value `true` is given for `visible` prop of Badge. But `visible` is defined as mandatory. This prop can be optional. --- src/components/Badge.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Badge.tsx b/src/components/Badge.tsx index 6afd03fd84..53bbf7f175 100644 --- a/src/components/Badge.tsx +++ b/src/components/Badge.tsx @@ -10,7 +10,7 @@ type Props = React.ComponentProps & { /** * Whether the badge is visible */ - visible: boolean; + visible?: boolean; /** * Content of the `Badge`. */