diff --git a/.changeset/lazy-roses-talk.md b/.changeset/lazy-roses-talk.md new file mode 100644 index 00000000..4c6257b3 --- /dev/null +++ b/.changeset/lazy-roses-talk.md @@ -0,0 +1,5 @@ +--- +"@easypost/easy-ui": patch +--- + +fix(AlertBadge): return type diff --git a/easy-ui-react/src/AlertBadge/AlertBadge.tsx b/easy-ui-react/src/AlertBadge/AlertBadge.tsx index a80403ec..70e1842a 100644 --- a/easy-ui-react/src/AlertBadge/AlertBadge.tsx +++ b/easy-ui-react/src/AlertBadge/AlertBadge.tsx @@ -44,7 +44,7 @@ export type AlertBadgeProps = { show: boolean; }; -export function AlertBadge(props: AlertBadgeProps) { +export function AlertBadge(props: AlertBadgeProps): React.JSX.Element { const { accessibilityLabel = "Alert Badge", placement = DEFAULT_PLACEMENT, @@ -61,7 +61,7 @@ export function AlertBadge(props: AlertBadgeProps) { ); if (!show) { - return children; + return <>{children}; } return (