From 765cef75645668eb2615727a0853dd3b419678b9 Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 19 Jul 2021 22:02:59 -0400 Subject: [PATCH] recon notify components --- ui/component/notificationBubble/view.jsx | 3 ++- ui/component/notificationHeaderButton/view.jsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/component/notificationBubble/view.jsx b/ui/component/notificationBubble/view.jsx index b8ac0edb6..9da6b1659 100644 --- a/ui/component/notificationBubble/view.jsx +++ b/ui/component/notificationBubble/view.jsx @@ -1,6 +1,7 @@ // @flow import React from 'react'; import classnames from 'classnames'; +import { ENABLE_UI_NOTIFICATIONS } from 'config'; type Props = { unseenCount: number, @@ -10,7 +11,7 @@ type Props = { export default function NotificationHeaderButton(props: Props) { const { unseenCount, inline = false, user } = props; - const notificationsEnabled = user && user.experimental_ui; + const notificationsEnabled = ENABLE_UI_NOTIFICATIONS || (user && user.experimental_ui); if (unseenCount === 0 || !notificationsEnabled) { return null; diff --git a/ui/component/notificationHeaderButton/view.jsx b/ui/component/notificationHeaderButton/view.jsx index 18dc409a0..74c581888 100644 --- a/ui/component/notificationHeaderButton/view.jsx +++ b/ui/component/notificationHeaderButton/view.jsx @@ -6,6 +6,7 @@ import Icon from 'component/common/icon'; import NotificationBubble from 'component/notificationBubble'; import Button from 'component/button'; import { useHistory } from 'react-router'; +import { ENABLE_UI_NOTIFICATIONS } from 'config'; type Props = { unseenCount: number, @@ -21,7 +22,7 @@ export default function NotificationHeaderButton(props: Props) { doSeeAllNotifications, user, } = props; - const notificationsEnabled = user && user.experimental_ui; + const notificationsEnabled = ENABLE_UI_NOTIFICATIONS || (user && user.experimental_ui); const { push } = useHistory(); function handleMenuClick() {