fix: InfoCard - Do not render subheader container when there is not a subheader or icon

Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
This commit is contained in:
Jack Palmer
2022-12-05 15:45:20 +00:00
parent b2a526e5ed
commit f1c48aa318
@@ -200,6 +200,10 @@ export function InfoCard(props: Props): JSX.Element {
}
const cardSubTitle = () => {
if (!subheader && !icon) {
return null;
}
return (
<div className={classes.headerSubheader}>
{subheader && <div className={classes.subheader}>{subheader}</div>}