Skip to content

Commit

Permalink
change(banner): restored label value of metadata field when type isn'…
Browse files Browse the repository at this point in the history
…t date
  • Loading branch information
ichim-david committed Jan 18, 2023
1 parent 7da3966 commit 571a4f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/Banner/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ Banner.MetadataField = ({ hidden, type = 'text', label, value, title }) => {
})}
</span>
);
return <span className={`field ${type}`}>{value}</span>;
return (
<span className={`field ${type}`}>
{label && <>{label}: </>}
{value}
</span>
);
};

export default Banner;

0 comments on commit 571a4f2

Please sign in to comment.