diff --git a/web/assets.js b/web/assets.js --- a/web/assets.js +++ b/web/assets.js @@ -2,13 +2,6 @@ export const assetCacheURLPrefix = 'https://dh9fld3hutpxf.cloudfront.net'; -// Notifications Modal Illustration: "Focused (badge only)" -export const badgeOnlyNotificationsIllustrationAsset = { - fileName: 'badge-notifs.svg', - height: '86px', - width: '46px', -}; - // Notifications Modal Illustration: "Background" export const backgroundNotificationsIllustrationAsset = { fileName: 'muted-notifs.svg', diff --git a/web/assets/badge-notifs.react.js b/web/assets/badge-notifs.react.js new file mode 100644 --- /dev/null +++ b/web/assets/badge-notifs.react.js @@ -0,0 +1,31 @@ +// @flow + +import * as React from 'react'; + +function BadgeNotifsIllustration(): React.Node { + return ( + + {'badge-notifs'} + + + + + + + + ); +} + +export default BadgeNotifsIllustration; diff --git a/web/modals/threads/notifications/notifications-modal.react.js b/web/modals/threads/notifications/notifications-modal.react.js --- a/web/modals/threads/notifications/notifications-modal.react.js +++ b/web/modals/threads/notifications/notifications-modal.react.js @@ -14,10 +14,10 @@ import { assetCacheURLPrefix, - badgeOnlyNotificationsIllustrationAsset, backgroundNotificationsIllustrationAsset, } from '../../../assets.js'; import AllNotifsIllustration from '../../../assets/all-notifs.react.js'; +import BadgeNotifsIllustration from '../../../assets/badge-notifs.react.js'; import Button from '../../../components/button.react'; import EnumSettingsOption from '../../../components/enum-settings-option.react'; import { useSelector } from '../../../redux/redux-utils'; @@ -138,13 +138,7 @@ const isFocusedBadgeOnlySelected = notificationSettings === 'badge-only'; const focusedBadgeOnlyItem = React.useMemo(() => { - const icon = ( - - ); + const icon = ; return (