Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lazy-roses-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@easypost/easy-ui": patch
---

fix(AlertBadge): return type
4 changes: 2 additions & 2 deletions easy-ui-react/src/AlertBadge/AlertBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -61,7 +61,7 @@ export function AlertBadge(props: AlertBadgeProps) {
);

if (!show) {
return children;
return <>{children}</>;
}

return (
Expand Down
Loading