|
|
@ -18,7 +18,12 @@ export default class MultipleNotifications extends PureComponent { |
|
|
|
|
|
|
|
|
|
|
|
const notificationsToBeRendered = notifications.filter(notificationConfig => notificationConfig.shouldBeRendered) |
|
|
|
const notificationsToBeRendered = notifications.filter(notificationConfig => notificationConfig.shouldBeRendered) |
|
|
|
|
|
|
|
|
|
|
|
return (<div |
|
|
|
if (notificationsToBeRendered.length === 0) { |
|
|
|
|
|
|
|
return null |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
<div |
|
|
|
className={classnames(...classNames, { |
|
|
|
className={classnames(...classNames, { |
|
|
|
'home-notification-wrapper--show-all': showAll, |
|
|
|
'home-notification-wrapper--show-all': showAll, |
|
|
|
'home-notification-wrapper--show-first': !showAll, |
|
|
|
'home-notification-wrapper--show-first': !showAll, |
|
|
@ -33,6 +38,7 @@ export default class MultipleNotifications extends PureComponent { |
|
|
|
'flipped': !showAll, |
|
|
|
'flipped': !showAll, |
|
|
|
})} /> : null} |
|
|
|
})} /> : null} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div>) |
|
|
|
</div> |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|