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:
@@ -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>}
|
||||
|
||||
Reference in New Issue
Block a user