Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/ItaliaTheme/View/Commons/Attachment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ const messages = defineMessages({
},
});

const Attachment = ({ title, description, download_url, item = {} }) => {
const Attachment = ({
title,
description,
download_url,
item = {},
iconClass = 'it-clip',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
iconClass = 'it-clip',
icon = 'it-clip',

}) => {
const intl = useIntl();
let _item = { ...item };
if (item['@type'] === 'File') {
Expand All @@ -28,7 +34,7 @@ const Attachment = ({ title, description, download_url, item = {} }) => {
tag="div"
>
<Icon
icon="it-clip"
icon={iconClass}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
icon={iconClass}
icon={icon}

alt={intl.formatMessage(messages.attachment)}
title={intl.formatMessage(messages.attachment)}
/>
Expand Down