From e27ce7f1ee765c218263d14489fdb776eafeb2f9 Mon Sep 17 00:00:00 2001 From: Tomasz Palys Date: Fri, 13 Sep 2024 17:08:35 +0200 Subject: [PATCH] [lib] Enable NUX for staff Summary: Turn the flag on for staff and dev. https://linear.app/comm/issue/ENG-9111/remove-the-flag-once-we-are-ready-to-launch-nux Test Plan: Open the app and check if NUX is performed. Reviewers: kamil, inka Reviewed By: kamil Subscribers: ashoat Differential Revision: https://phab.comm.dev/D13337 --- native/components/nux-handler.react.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/components/nux-handler.react.js b/native/components/nux-handler.react.js index cfe787e534..fd6dbcfef3 100644 --- a/native/components/nux-handler.react.js +++ b/native/components/nux-handler.react.js @@ -9,13 +9,13 @@ import { isLoggedIn } from 'lib/selectors/user-selectors.js'; import { NUXTipsContext } from './nux-tips-context.react.js'; import { useSelector } from '../redux/redux-utils.js'; import { useOnFirstLaunchEffect } from '../utils/hooks.js'; - -const showTipsFlag = false; +import { useStaffCanSee } from '../utils/staff-utils.js'; function NUXHandler(): React.Node { const nuxTipsContext = React.useContext(NUXTipsContext); invariant(nuxTipsContext, 'nuxTipsContext should be defined'); const { tipsProps } = nuxTipsContext; + const showTipsFlag = useStaffCanSee(); const loggedIn = useSelector(isLoggedIn);