Skip to content

Commit f1ee538

Browse files
committed
Avoid passing overlayContent in CardSecion (#1187)
1 parent f21a719 commit f1ee538

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/card/CardSection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class CardSection extends PureComponent<Props> {
6666

6767
renderContent = () => {
6868
const {content, leadingIcon, trailingIcon, contentStyle, testID} = this.props;
69+
if (!leadingIcon && !trailingIcon && _.isEmpty(content)) {
70+
return;
71+
}
72+
6973
return (
7074
<>
7175
{leadingIcon && <Image testID={`${testID}.leadingIcon`} {...leadingIcon}/>}

0 commit comments

Comments
 (0)