diff --git a/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js b/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js index da457f2e9..cf0754440 100644 --- a/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js +++ b/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js @@ -15,7 +15,7 @@ const ICON_FOR_TYPE = Object.assign(Object.create(null), { 'other': 'ic_movies' }); -const Notification = ({ className, id, type, name, poster, thumbnail, season, episode, released, videoThumbnail, onClick }) => { +const Notification = ({ className, id, type, name, poster, thumbnail, season, episode, released, onClick }) => { const daysAgo = React.useMemo(() => { return Math.floor(Math.abs((Date.now() - released) / (24 * 60 * 60 * 1000))); }, [released]); @@ -54,7 +54,7 @@ const Notification = ({ className, id, type, name, poster, thumbnail, season, ep } { - videoThumbnail ? + thumbnail !== null ?
{ {...notification} key={`${index}${req.base}${content.type}${notification.id}`} className={styles['notification']} - videoThumbnail={true} thumbnail={notification.videos[0].thumbnail} season={notification.videos[0].season} episode={notification.videos[0].episode} @@ -41,8 +40,8 @@ const NotificationsList = ({ className, metaItems }) => { {...notification} key={`${index}${req.base}${content.type}${notification.id}`} className={styles['notification']} - videoThumbnail={false} name={notification.videos.length + ' new videos for ' + notification.name} + thumbnail={null} released={notification.videos[notification.videos.length - 1].released} /> ); diff --git a/storybook/stories/Notification/MultipleVideosNotification.js b/storybook/stories/Notification/MultipleVideosNotification.js index 87d84d1e3..4521f0070 100644 --- a/storybook/stories/Notification/MultipleVideosNotification.js +++ b/storybook/stories/Notification/MultipleVideosNotification.js @@ -11,8 +11,8 @@ storiesOf('Notification', module).add('MultipleVideos', () => ( type={'series'} name={'Demo name'} poster={'/images/intro_background.jpg'} + thumbnail={null} released={new Date()} - videoThumbnail={false} onClick={action('Demo item clicked')} /> )); diff --git a/storybook/stories/Notification/SingleVideoNotification.js b/storybook/stories/Notification/SingleVideoNotification.js index 71c2671ef..0258ec5d0 100644 --- a/storybook/stories/Notification/SingleVideoNotification.js +++ b/storybook/stories/Notification/SingleVideoNotification.js @@ -15,7 +15,6 @@ storiesOf('Notification', module).add('SingleVideo', () => ( season={1} episode={1} released={new Date()} - videoThumbnail={true} onClick={action('Demo item clicked')} /> ));