diff --git a/src/app/components/cds/media-cards/SmallMediaCard.js b/src/app/components/cds/media-cards/SmallMediaCard.js index 955c02a538..33729bb710 100644 --- a/src/app/components/cds/media-cards/SmallMediaCard.js +++ b/src/app/components/cds/media-cards/SmallMediaCard.js @@ -18,6 +18,7 @@ const SmallMediaCard = ({ media, onClick, superAdminMask, + title, }) => { if (!media) { return ( @@ -57,7 +58,7 @@ const SmallMediaCard = ({
- +
{ media.url ?
@@ -86,16 +87,18 @@ SmallMediaCard.propTypes = { metadata: PropTypes.object, }).isRequired, superAdminMask: PropTypes.bool, + title: PropTypes.string, onClick: PropTypes.func, }; SmallMediaCard.defaultProps = { + className: '', details: null, description: null, maskContent: false, superAdminMask: false, + title: null, onClick: () => {}, - className: '', }; // eslint-disable-next-line import/no-unused-modules diff --git a/src/app/components/media/AutoCompleteMediaItem.js b/src/app/components/media/AutoCompleteMediaItem.js index 98de54bc7d..f8b866dfbf 100644 --- a/src/app/components/media/AutoCompleteMediaItem.js +++ b/src/app/components/media/AutoCompleteMediaItem.js @@ -425,6 +425,7 @@ const AutoCompleteMediaItem = (props, context) => { ]} maskContent={projectMedia.show_warning_cover} media={projectMedia.media} + title={projectMedia.title} onClick={e => handleClick(e, projectMedia.dbid)} />