diff --git a/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js b/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js index 2f442f088..8077d986b 100644 --- a/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js +++ b/src/common/NavBar/NotificationsMenu/NotificationsList/Notification/Notification.js @@ -14,8 +14,8 @@ const ICON_FOR_TYPE = Object.assign(Object.create(null), { 'other': 'ic_movies' }); -const Notification = ({ className, id, type, name, logo, poster, season, episode, released, posterThumbnail, onClick }) => { - const [aLogo, setALogo] = React.useState(logo); +const Notification = ({ className, id, type, name, poster, thumbnail, season, episode, released, posterThumbnail, onClick }) => { + const [aLogo, setALogo] = React.useState(poster); const daysAgo = Math.floor(Math.abs((Date.now() - released) / (24 * 60 * 60 * 1000))); return ( @@ -24,7 +24,7 @@ const Notification = ({ className, id, type, name, logo, poster, season, episode { typeof aLogo === 'string' && aLogo.length > 0 ?
- {' { setALogo('') }} /> + {' { setALogo('') }} />
:
@@ -62,9 +62,9 @@ const Notification = ({ className, id, type, name, logo, poster, season, episode />
{ - typeof poster === 'string' && poster.length > 0 ? + typeof thumbnail === 'string' && thumbnail.length > 0 ?
- {' + {'
: null @@ -85,8 +85,8 @@ Notification.propTypes = { id: PropTypes.string, type: PropTypes.string, name: PropTypes.string, - logo: PropTypes.string, poster: PropTypes.string, + thumbnail: PropTypes.string, season: PropTypes.number, episode: PropTypes.number, released: PropTypes.instanceOf(Date),