From de2995e6d846ee1c9468bdd8ec300191b5bb2c08 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Tue, 22 Jul 2025 13:04:07 +0200 Subject: [PATCH] feat: make Attachment icon customizable --- src/components/ItaliaTheme/View/Commons/Attachment.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ItaliaTheme/View/Commons/Attachment.jsx b/src/components/ItaliaTheme/View/Commons/Attachment.jsx index be703dd54..0c0a4bdde 100644 --- a/src/components/ItaliaTheme/View/Commons/Attachment.jsx +++ b/src/components/ItaliaTheme/View/Commons/Attachment.jsx @@ -12,7 +12,13 @@ const messages = defineMessages({ }, }); -const Attachment = ({ title, description, download_url, item = {} }) => { +const Attachment = ({ + title, + description, + download_url, + item = {}, + iconClass = 'it-clip', +}) => { const intl = useIntl(); let _item = { ...item }; if (item['@type'] === 'File') { @@ -28,7 +34,7 @@ const Attachment = ({ title, description, download_url, item = {} }) => { tag="div" >