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" -export const focusedNotificationsIllustrationAsset = { - fileName: 'all-notifs.svg', - height: '86px', - width: '46px', -}; - // Notifications Modal Illustration: "Focused (badge only)" export const badgeOnlyNotificationsIllustrationAsset = { fileName: 'badge-notifs.svg', diff --git a/web/assets/all-notifs.react.js b/web/assets/all-notifs.react.js new file mode 100644 --- /dev/null +++ b/web/assets/all-notifs.react.js @@ -0,0 +1,35 @@ +// @flow + +import * as React from 'react'; + +function AllNotifsIllustration(): React.Node { + return ( + + {'all-notifs'} + + + + + + + + + ); +} + +export default AllNotifsIllustration; 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, - focusedNotificationsIllustrationAsset, badgeOnlyNotificationsIllustrationAsset, backgroundNotificationsIllustrationAsset, } from '../../../assets.js'; +import AllNotifsIllustration from '../../../assets/all-notifs.react.js'; import Button from '../../../components/button.react'; import EnumSettingsOption from '../../../components/enum-settings-option.react'; import { useSelector } from '../../../redux/redux-utils'; @@ -124,13 +124,7 @@ const isFocusedSelected = notificationSettings === 'focused'; const focusedItem = React.useMemo(() => { - const icon = ( - - ); + const icon = ; return (