From 35c1a9d33d50cd11e79224b8c5784862f2b30dfe Mon Sep 17 00:00:00 2001 From: Wagner Trezub Date: Tue, 31 Oct 2023 14:36:40 +0100 Subject: [PATCH] feat: added source title to single card --- .../Blocks/RssBlock/CardWithImageRssTemplate.jsx | 6 ++++++ .../Blocks/RssBlock/CardWithoutImageRssTemplate.jsx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx index 877999a5e..763a8da78 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx @@ -68,6 +68,12 @@ const CardWithImageRssTemplate = ({ )}
+ {item?.source?.length > 0 && ( + <> + {item.source} + + + )} {item?.categories?.length > 0 && item.categories[0]._ && ( <> diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx index 16c92a130..fc9112dc2 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx @@ -53,6 +53,12 @@ const CardWithoutImageRssTemplate = ({
+ {item?.source?.length > 0 && ( + <> + {item.source} + + + )} {item?.categories?.length > 0 && item.categories[0]._ && ( <>