diff --git a/native/components/nux-handler.react.js b/native/components/nux-handler.react.js index cfe787e53..fd6dbcfef 100644 --- a/native/components/nux-handler.react.js +++ b/native/components/nux-handler.react.js @@ -1,41 +1,41 @@ // @flow import { useNavigation } from '@react-navigation/core'; import invariant from 'invariant'; import * as React from 'react'; 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); if (!tipsProps || !loggedIn || !showTipsFlag) { return null; } return ; } function NUXHandlerInner(): React.Node { const navigation = useNavigation(); const effect = React.useCallback(() => { navigation.navigate<'NUXTipOverlayBackdrop'>({ name: 'NUXTipOverlayBackdrop', }); }, [navigation]); useOnFirstLaunchEffect('NUX_HANDLER', effect); } export { NUXHandler };