From 571a4f27fe73d0465b6482f70dd70b2dc47dffe8 Mon Sep 17 00:00:00 2001 From: David Ichim Date: Wed, 18 Jan 2023 21:12:32 +0200 Subject: [PATCH] change(banner): restored label value of metadata field when type isn't date --- src/ui/Banner/Banner.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/Banner/Banner.jsx b/src/ui/Banner/Banner.jsx index 9579c5cac9..63b4f283cd 100644 --- a/src/ui/Banner/Banner.jsx +++ b/src/ui/Banner/Banner.jsx @@ -118,7 +118,12 @@ Banner.MetadataField = ({ hidden, type = 'text', label, value, title }) => { })} ); - return {value}; + return ( + + {label && <>{label}: } + {value} + + ); }; export default Banner;