livestream notification styling

This commit is contained in:
Sean Yesmunt 2021-04-16 15:53:33 -04:00
parent 166d2f9049
commit fdeea30a4a
2 changed files with 11 additions and 6 deletions

View file

@ -74,6 +74,9 @@ export default function Notification(props: Props) {
case NOTIFICATIONS.NEW_CONTENT: case NOTIFICATIONS.NEW_CONTENT:
icon = <ChannelThumbnail small uri={notification_parameters.dynamic.channel_url} />; icon = <ChannelThumbnail small uri={notification_parameters.dynamic.channel_url} />;
break; break;
case NOTIFICATIONS.NEW_LIVESTREAM:
icon = <ChannelThumbnail small uri={notification_parameters.dynamic.channel_url} />;
break;
case NOTIFICATIONS.DAILY_WATCH_AVAILABLE: case NOTIFICATIONS.DAILY_WATCH_AVAILABLE:
case NOTIFICATIONS.DAILY_WATCH_REMIND: case NOTIFICATIONS.DAILY_WATCH_REMIND:
icon = <Icon icon={ICONS.LBC} sectionIcon />; icon = <Icon icon={ICONS.LBC} sectionIcon />;
@ -147,12 +150,13 @@ export default function Notification(props: Props) {
</div> </div>
{notification_rule === NOTIFICATIONS.NEW_CONTENT && ( {notification_rule === NOTIFICATIONS.NEW_CONTENT && (
<> <FileThumbnail uri={notification_parameters.device.target} className="notification__content-thumbnail" />
)}
{notification_rule === NOTIFICATIONS.NEW_LIVESTREAM && (
<FileThumbnail <FileThumbnail
uri={notification_parameters.device.target} thumbnail={notification_parameters.device.image_url}
className="notification__content-thumbnail" className="notification__content-thumbnail"
/> />
</>
)} )}
</div> </div>

View file

@ -4,6 +4,7 @@ export const NOTIFICATION_REPLY = 'comment-reply';
export const DAILY_WATCH_AVAILABLE = 'daily_watch_available'; export const DAILY_WATCH_AVAILABLE = 'daily_watch_available';
export const DAILY_WATCH_REMIND = 'daily_watch_remind'; export const DAILY_WATCH_REMIND = 'daily_watch_remind';
export const NEW_CONTENT = 'new_content'; export const NEW_CONTENT = 'new_content';
export const NEW_LIVESTREAM = 'new_livestream';
export const NOTIFICATION_RULE_NONE = ''; export const NOTIFICATION_RULE_NONE = '';
export const NOTIFICATION_RULE_COMMENTS = 'comments'; export const NOTIFICATION_RULE_COMMENTS = 'comments';